You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "William Slacum (JIRA)" <ji...@apache.org> on 2013/08/05 18:26:48 UTC

[jira] [Commented] (ACCUMULO-1639) Server-side iterator/filter that allows you to specify a lexicographical range of column qualifier values you want to retrieve from a Scanner (ColumnSliceFilter)

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

William Slacum commented on ACCUMULO-1639:
------------------------------------------

Thanks, Jeffrey!

You might want to consider adding in a check to verify that start is less than or equal to end. That way the scan can throw an Exception with an invalid state and kill the scan immediately rather than scan the entire Range with no hope of returning results.
                
> Server-side iterator/filter that allows you to specify a lexicographical range of column qualifier values you want to retrieve from a Scanner (ColumnSliceFilter)
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-1639
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1639
>             Project: Accumulo
>          Issue Type: New Feature
>    Affects Versions: 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.6.0
>         Environment: All
>            Reporter: Jeffrey Principe
>            Priority: Minor
>              Labels: features
>         Attachments: ColumnSliceFilter.java, ColumnSliceFilterTest.java
>
>
> This filter is modeled off of the RegExFilter class in the org.apache.accumulo.core.iterators.user package. It allows you to specify a lexicographical start and end (including whether or not it is inclusive on each side) to a range of column qualifier keys that you would like returned from the retrieved data set on a Scanner or BatchScanner. It sets options on its IteratorSetting with a static method (setSlice), and is added to a Scanner/BatchScanner using addScanIterator like normal iterators/filters. This filter is intended to be an Accumulo equivalent to HBase's ColumnRangeFilter.

--
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