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 512A7D069 for ; Wed, 15 May 2013 15:00:44 +0000 (UTC) Received: (qmail 4947 invoked by uid 500); 15 May 2013 15:00:40 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 4854 invoked by uid 500); 15 May 2013 15:00:40 -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 4790 invoked by uid 99); 15 May 2013 15:00:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 15:00:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of varun@pinterest.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 15:00:35 +0000 Received: by mail-ie0-f174.google.com with SMTP id 10so3785788ied.5 for ; Wed, 15 May 2013 08:00:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=ocRRQ03OWT94RdDGQ14JOpzf3MuT2rVMmlU1F+4ZqyA=; b=TxnnuI0uP5Sp6is8NIIE/0IumOFxFPvyNSHEpivu4Zl2BvIolyC02Ks0VfzTIW2sPR yR5tWPer0fiSdP5A6X8+eX1YukOR+cVgAZzpbQWIhP6Td3XaE35kg39euBQ791NPakJn BMynPj9mIjFIu+kmgMqc6r5A2MDxWJTBHa9n5XeMPhjO4stpjMC1jLY0oBDftvWrdzNA 9MA/kxUl0A+bc8Y9/AwY64fHnHBEmcsqQXmx0gpQ6n5PhhMeWfX5oLkukVDthCtURWE3 rHWgHojvRBQKq4GwJG+U1uEJ4gqMNgPuwvXVgfRFX9OsUgKUdn4M/oYh3JJNVhMDZnSI Xakg== MIME-Version: 1.0 X-Received: by 10.50.110.65 with SMTP id hy1mr5518962igb.102.1368630010381; Wed, 15 May 2013 08:00:10 -0700 (PDT) Received: by 10.231.12.138 with HTTP; Wed, 15 May 2013 08:00:10 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 May 2013 08:00:10 -0700 Message-ID: Subject: Re: Running prefix scans in hbase From: Varun Sharma To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=089e0111d1de9914bc04dcc3019c X-Gm-Message-State: ALoCoQn2isKpi/PsTSoBSjwpWcMfrmCLDeMI09SP+sieBduc9PIPOrflmYjJ2yv2NdWi7ncryIRm X-Virus-Checked: Checked by ClamAV on apache.org --089e0111d1de9914bc04dcc3019c Content-Type: text/plain; charset=ISO-8859-1 Not after but only before hitting the prefix - I will check the startRow stuff - I could not find where the seek happens for that... On Wed, May 15, 2013 at 7:51 AM, Stack wrote: > On Tue, May 14, 2013 at 11:33 PM, Varun Sharma > wrote: > > > Hi, > > > > I was looking at PrefixFilter but going by the implementation - it looks > we > > scan every row until we hit the prefix instead of seeking to the row with > > the required prefix. > > > > I was wondering if there are more efficient alternatives which would do a > > real seek rather than scanning all rows. Would setting startRow and > stopRow > > - effectively seek to startRow and then perform the scan ? > > > > Are you saying the prefix filter keeps reading rows even though it has > passed out the prefix? I'd think it would return true out of > > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/PrefixFilter.html#filterAllRemaining()once > it had gone past rows with the prefix? > > St.Ack > --089e0111d1de9914bc04dcc3019c--