[ 
https://issues.apache.org/jira/browse/ACCUMULO-1682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757447#comment-13757447
 ] 

Corey J. Nolet commented on ACCUMULO-1682:
------------------------------------------

If possible, the current IntersectingIterator's API could change slightly to 
encode columns as Pair<Text>[] columns where pair.first = start of range and 
pair.second = end of range. Discrete intersections could be made by setting the 
pair.second = null. Ranges could be inclusive by default or some parameter 
boolean[] inclusive provided to specify a sentinel for the intersections. 

Further, backwards compatibility could be maintained by keeping the 
configuration method that takes a "Text[] columns" and just adding a 
Pair<Text>(column, null) to the new Pair<Text> columns.
                
> Iterator and example to support intersection of document-partitioned index 
> terms by ranges with lower and upper bounds.
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-1682
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1682
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Corey J. Nolet
>            Priority: Minor
>              Labels: proposal
>
> The current IntersectingIterator seeks to discrete terms that are encoded 
> into the column families to find all column qualifiers that share all of the 
> discrete column families of interest (with the additional ability to negate 
> some of the column families). Looking at the current IntersectingIterator 
> code, it should be possible to return all column qualifiers with a column 
> family within a given range.
> An example of this is finding all terms where NAME=Joe and (AGE>=30 && 
> AGE<60) and STATE!=MD. If an example is provided, numerical types like the 
> age could easily be encoded using the new Lexicoders.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to