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 1B1F9C516 for ; Fri, 25 May 2012 17:48:38 +0000 (UTC) Received: (qmail 77801 invoked by uid 500); 25 May 2012 17:48:36 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 77668 invoked by uid 500); 25 May 2012 17:48:36 -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 77659 invoked by uid 99); 25 May 2012 17:48:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 17:48:36 +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 jackchrispoo@gmail.com designates 209.85.216.50 as permitted sender) Received: from [209.85.216.50] (HELO mail-qa0-f50.google.com) (209.85.216.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 17:48:29 +0000 Received: by qafl39 with SMTP id l39so1425401qaf.2 for ; Fri, 25 May 2012 10:48:09 -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=ZTb0J/9vl+2BojeWDtioSP+Y8F7qD3ONnB1M77bVz2s=; b=JPpMmvqPxfDId5Mx8Jx2W6gvzF64rXWalIueRTEIvnzFf88jekBZYPplDclsVm0WXJ 6squ3EzUzH9Aj4Hc2Ka154AIzTfEyz1fc2QZbPxknVXOYstNMpSNiR6BhvPZVANcmckD zay3MQvhU8bdHkaB7X9LfQQPvvvYvqYLo7i7OVQtG/KgzfvjhDsBYCh4S8jgXSCymf0S /0mgMkUZwkTo2uzPqjMLrqxZdura/NU1QFpekEusM1o7LyEsFFwPQmsuR3rawFPUxv6+ My7B+ED6SAfUcL3S51hhldZwrlyuE0dWCkTfucyL1cWujh9UdAZivYuxxuWy4AtXKk3t VJWg== MIME-Version: 1.0 Received: by 10.224.217.67 with SMTP id hl3mr4628135qab.75.1337968089010; Fri, 25 May 2012 10:48:09 -0700 (PDT) Received: by 10.229.89.85 with HTTP; Fri, 25 May 2012 10:48:08 -0700 (PDT) In-Reply-To: <1337906424.94894.BPMail_high_noncarrier@web192503.mail.sg3.yahoo.com> References: <1337906424.94894.BPMail_high_noncarrier@web192503.mail.sg3.yahoo.com> Date: Fri, 25 May 2012 10:48:08 -0700 Message-ID: Subject: Re: : question on filters From: jack chrispoo To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf300fb275aa926f04c0dff841 --20cf300fb275aa926f04c0dff841 Content-Type: text/plain; charset=ISO-8859-1 Thanks Dhaval, and is there a way to get multiple rows (their keys not contiguous) from HBase server with only one request? it seems to me it's expensive to send one get request for each one row. jack On Thu, May 24, 2012 at 5:40 PM, Dhaval Shah wrote: > > Jack, you can use filters on Get's too.. > > > > ------------------------------ > On Fri 25 May, 2012 5:36 AM IST jack chrispoo wrote: > > >Hi, > > > >I'm new to HBase and I have a question about using filters. I know that I > >can use filters with scan, say scan start-key=key1 & end-key=key2 and with > >a SingleColumnValueFilter: columnA=valueA. But in my java program I need > to > >do filtering on a set of rows which are not contiguous, my client needs to > >get all rows with rowid in a set and with columnA=valueA. I don't > >know how this can be done efficiently. I can imagine that I can do a scan > >of the entire table and set filers rowid=... and columnA=valueA; or I can > >use get function to get the rows with rowid in my set all to my client and > >do the filtering on my client side. But I think neither way is efficient. > >Can anyone give me a hint on this? > > > >Thanks > >Yixiao > > --20cf300fb275aa926f04c0dff841--