accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kini, Ameet M." <ak...@mitre.org>
Subject filter on value ranges
Date Fri, 09 Mar 2012 14:07:09 GMT

In 1.4, is there a way to use built-in iterators to run the following query :
  "get the name and salary of all employees where the salary is between X and Y"

Assuming a straightforward schema where name and salary are both cq.

I'd like both the cq restriction and the range predicate applied on the tservers.

I see that Scanner.setColumnQualifierRegex would take care of the cq restriction. But I don't
know of a built-in iterator for the range predicate and I don't know of how to compose those
two iterators.

Thanks,
-Ameet Kini


Mime
View raw message