Re: question on filters

2012-05-28 Thread Ben Kim
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 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 > >

Re: : question on filters

2012-05-25 Thread Dhaval Shah
Yes instead of a single Get you can supply a list of Get's to the same htable.get call. It will sort and partition the list on a per region basis, make requests in parallel, aggregate the responses and return an array of Result. Make sure you apply your filter to each Get ---

Re: : question on filters

2012-05-25 Thread Alok Kumar
Hi, try creating a FilterList and attach it to scan object. A FilterList may contain any number of filters, with MUSTPASS.ALL or MUSTPASS.ONE condition. This way scan.setFilter(yourFilerList) returns you a ResultScanner object where rows are not contiguous. Or you can make use of HTable.batch(.

Re: question on filters

2012-05-25 Thread Jean-Daniel Cryans
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 wrote: > Hi, > > I'm new to HBase and I have a question about using filters. I know that I > can use filters w

Re: : question on filters

2012-05-25 Thread jack chrispoo
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.

Re:: question on filters

2012-05-24 Thread Dhaval Shah
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 SingleC

question on filters

2012-05-24 Thread jack chrispoo
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 nee