hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kim <benkimkim...@gmail.com>
Subject Re: question on filters
Date Mon, 28 May 2012 12:21:58 GMT
If the number of requesting rows aren't that l big enough then I would just
use a List of Gets.

On Sat, May 26, 2012 at 3:27 AM, Jean-Daniel Cryans <jdcryans@apache.org>wrote:

> What you need is a secondary index and HBase doesn't have that. For
> some tips see: http://hbase.apache.org/book.html#secondary.indexes
>
> J-D
>
> On Thu, May 24, 2012 at 5:06 PM, jack chrispoo <jackchrispoo@gmail.com>
> 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<String> 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
>



-- 

*Benjamin Kim*
**Mo : +82 10.5357.0521*
benkimkimben at gmail*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message