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 99ECD17EEF for ; Wed, 22 Apr 2015 11:41:03 +0000 (UTC) Received: (qmail 26506 invoked by uid 500); 22 Apr 2015 11:41:01 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 26439 invoked by uid 500); 22 Apr 2015 11:41:01 -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 26427 invoked by uid 99); 22 Apr 2015 11:41:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 11:41:01 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of shahab.yunus@gmail.com does not designate 54.191.145.13 as permitted sender) Received: from [54.191.145.13] (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 11:40:54 +0000 Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A77C0256CA for ; Wed, 22 Apr 2015 11:40:33 +0000 (UTC) Received: by lbcga7 with SMTP id ga7so177888993lbc.1 for ; Wed, 22 Apr 2015 04:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/Cec7XRbVaT1SjUvmUSmcQfgB4GyfXEb9x6BWvzNVzE=; b=P2fO4+XYZhbXCZ5MCDl9n5n/i+eM+gpfi9u2O0u+FG285i4/uWOq331BHfpxAQ1p4Y +FtUY3Yg/oLCJZODwvVyySVnSsgLo5KFBg3lAYfMLAQYmmj4qbjeTVQipcdO2hXtsNbE eeoUYSq2PsTbtEwsH3fppL2OLPXlE+7WngqmPx1t3Pcdp1xBfd/VF/0JIzwcKibKAV6J n6DeKjurxk0tsckxnzxy7uVde2wUi0bCUjyELOR8u28bUOK3GXpoX2DqVkUWnxo/P9mX bBbWBH1o6V2qRJIslTFD/bkSeTT+T4OaiYRS9A/xzZX6fRRN83u2fHyDBd61zGxKiSR2 myEw== MIME-Version: 1.0 X-Received: by 10.112.150.130 with SMTP id ui2mr24148824lbb.116.1429702787145; Wed, 22 Apr 2015 04:39:47 -0700 (PDT) Received: by 10.25.211.129 with HTTP; Wed, 22 Apr 2015 04:39:47 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Apr 2015 07:39:47 -0400 Message-ID: Subject: Re: scan startrow and stoprow From: Shahab Yunus To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=047d7b3a821ac3241405144e9ef6 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a821ac3241405144e9ef6 Content-Type: text/plain; charset=UTF-8 I see that you are already using partial key scan approach. When you say that you want data from the timeStamp2 as well, you want all the rows from timeStamp2? Also, how are you actually setting the stopRow? What are you providing for the *anyNumber field when you are setting stopRow? e.g. if your data is: aabb|timeStamp1 aabb|timeStamp1|5 aabb|timeStamp1|9 aabb|timeStamp2|3 aabb|timeStamp2|4 aabb|timeStamp2|5 In this case you want all 6 rows, right? Regards, Shahab On Wed, Apr 22, 2015 at 7:03 AM, Sachin wrote: > My rowkey format is uniqueid|timestamp|randomnumber. > > I want to retrieve data from hbase by using scanner with java api where my > startRow : aabb|timeStamp1| > stopRow is : aabb|timeStamp2|any_number > > timeStamp1 and timeStamp2 are time ranges. So I want to fetch all values in > between above timestamp where my *any_number can be anything it's * in > regular expression. So my start and stop rows become : > > startRow : aabb|timeStamp1| > stopRow is : aabb|timeStamp2|* > > I set these param to scan object but its not fetching data from hbase. Can > anyone tell me how to do that? > > --047d7b3a821ac3241405144e9ef6--