Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DD64ED40 for ; Mon, 28 Jan 2013 15:18:09 +0000 (UTC) Received: (qmail 40577 invoked by uid 500); 28 Jan 2013 15:18:07 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 40181 invoked by uid 500); 28 Jan 2013 15:18:07 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 40154 invoked by uid 99); 28 Jan 2013 15:18:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 15:18:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_20,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rodriguinho@jusbrasil.com.br designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-wi0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 15:17:58 +0000 Received: by mail-wi0-f180.google.com with SMTP id hj13so1531826wib.13 for ; Mon, 28 Jan 2013 07:17:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type:x-gm-message-state; bh=d1i/uBI7Ty91xilIzOonXGQHRPkwyAzUcPYUu5fwK5A=; b=S+ItIkUUZIWIsbY248PfDkQ9goKTAoDYuE9oKVBntDW7D/XWhSoz9gr3jVyYvTanu1 HJQEUanXEhwEwC+Cxyht2/DlHYX2wFJJdQXQSOvAgYVWBFOOUqxy+CpC09LtHMvOYbOq lYpBJ04NUy6dF3aESTKNXM4Xt2viie9RJmZtwtQE7gKeeiPnraVIeWCq7YfRrlBtV3+M Zn6KV2MarQViX+/Th2xUrLA7TwTSBiKlqh1j/BDNivc4djpThqsMGD64hCfx/iD37P2f d4hFp6S5nt9kZQGactc6ZF9xNNj8TPEsIjQ2WeKcW54AH6LQDpfisXhj3BilNhvMc3CX QXew== MIME-Version: 1.0 X-Received: by 10.180.92.129 with SMTP id cm1mr8243844wib.10.1359386257444; Mon, 28 Jan 2013 07:17:37 -0800 (PST) Received: by 10.194.71.206 with HTTP; Mon, 28 Jan 2013 07:17:37 -0800 (PST) X-Originating-IP: [177.19.218.200] In-Reply-To: References: Date: Mon, 28 Jan 2013 12:17:37 -0300 Message-ID: Subject: Re: how to model data based on "time bucket" From: Rodrigo Ribeiro To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d043c7d14fcce1804d45ac6fe X-Gm-Message-State: ALoCoQnHTvjbLQHvh4h5DQpRwQOLdypuggZsOP15/IRT8Bz1upt8meO6sZdNFJYI7GfyqZB67F9u X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7d14fcce1804d45ac6fe Content-Type: text/plain; charset=ISO-8859-1 You can use another table as a index, using a rowkey like '{time}:{event_id}', and then scan in the range ["10:07", "10:15"). On Mon, Jan 28, 2013 at 10:06 AM, Oleg Ruchovets wrote: > Hi , > > I have such row data structure: > > event_id | time > ============= > event1 | 10:07 > event2 | 10:10 > event3 | 10:12 > > event4 | 10:20 > event5 | 10:23 > event6 | 10:25 > > > Numbers of records is 50-100 million. > > > Question: > > I need to find group of events starting form eventX and enters to the time > window bucket = T. > > > For example: if T=7 munutes. > Starting from event event1- {event1, event2 , event3} were detected durint > 7 minutes. > > Starting from event event2- {event2 , event3} were detected durint 7 > minutes. > > Starting from event event4 - {event4, event5 , event6} were detected during > 7 minutes. > Is there a way to model the data in hbase to get? > > Thanks > -- *Rodrigo Pereira Ribeiro* Software Developer www.jusbrasil.com.br --f46d043c7d14fcce1804d45ac6fe--