|
|
-
Intersecting column family:column qualifier sets
Roshan Punnoose 2012-07-10, 00:43
Hi All,
If I have a row with a set of keys as such: - row1 cf:cq val - row1 cf1:cq1 val - row1 cf2:cq2 val - row2 cf:cq val
Is there a way I can ask Accumulo to give me back all rows that have all pairs (basically do an AND search): cf:cq, cf1:cq1, cf2:cq2. That way I should only receive row1 back.
Thanks! Roshan
-
Re: Intersecting column family:column qualifier sets
John Vines 2012-07-10, 02:13
I may be mistaken, but I believe the existing IntersectingIterator does not function like that. However, it is possible to create an iterator that performs this task.
John
On Mon, Jul 9, 2012 at 8:44 PM, Roshan Punnoose <[EMAIL PROTECTED]> wrote:
> Hi All, > > If I have a row with a set of keys as such: > - row1 cf:cq val > - row1 cf1:cq1 val > - row1 cf2:cq2 val > - row2 cf:cq val > > Is there a way I can ask Accumulo to give me back all rows that have all > pairs (basically do an AND search): cf:cq, cf1:cq1, cf2:cq2. That way I > should only receive row1 back. > > Thanks! > Roshan >
-
Re: Intersecting column family:column qualifier sets
Billie J Rinaldi 2012-07-10, 02:55
On Monday, July 9, 2012 8:43:33 PM, "Roshan Punnoose" <[EMAIL PROTECTED]> wrote: > Hi All, > > > If I have a row with a set of keys as such: > - row1 cf:cq val > - row1 cf1:cq1 val > - row1 cf2:cq2 val > - row2 cf:cq val > > > Is there a way I can ask Accumulo to give me back all rows that have > all pairs (basically do an AND search): cf:cq, cf1:cq1, cf2:cq2. That > way I should only receive row1 back.
Take a look at RowFilter in the ...core.iterators.user package. It brings back rows that satisfy a condition specified in an abstract acceptRow method that is given an iterator over one particular row.
Billie > > Thanks! > Roshan
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext