You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jim Kellerman (JIRA)" <ji...@apache.org> on 2008/04/16 19:39:21 UTC

[jira] Issue Comment Edited: (HBASE-584) Names in the filter interface are confusing

    [ https://issues.apache.org/jira/browse/HBASE-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589667#action_12589667 ] 

jimk edited comment on HBASE-584 at 4/16/08 10:39 AM:
---------------------------------------------------------------

Deprecate the old method names, and have them call the new methods.

+1 on fixing javadoc

If you add timestamps, make them optional (e.g., caller specifies 0 for timestamp means don't filter on timestamp). The deprecated APIs will call the new APIs and specify 0 for the timestamp value.

Please update test cases to use new APIs.

Please make the patch for the 0.1 branch, and we can remove the deprecated APIs  in 0.2


      was (Author: jimk):
    Deprecate the old method names, and have them call the new methods.

+1 on fixing javadoc

If you add timestamps, make them optional (e.g., caller specifies 0 for timestamp means don't filter on timestamp). The deprecated APIs will call the new APIs and specify 0 for the timestamp value.

Please update test cases to use new APIs.

Please make the patch for the 0.1 branch, and we can remove them in 0.2

  
> Names in the filter interface are confusing
> -------------------------------------------
>
>                 Key: HBASE-584
>                 URL: https://issues.apache.org/jira/browse/HBASE-584
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: filters
>            Reporter: Clint Morgan
>            Priority: Minor
>
> I don't like the names of the filter methods in RowFilterInterface. They don't really tell how the methods are being used in the implementation of scanners.
> I'd like to change:
>  - filter(Text) to filterRow(...)
>  - filter(Text, Text, byte[]) to filterColumn(...)
>   and the worst one is
>  - filterNotNull(SortedMap<Text, byte[]>). This should be filterRow(Text, SortedMap<Text, byte[]>) (so we add the row key/).
> It may be nice to have timestamps in the methods as well? 
> Also the java doc could be cleaned and improved to tell how the filtering is implemented (check rows keys first, then check each individual columns, finally check the assembled row)
> Upon positive feedback, and I'll create a patch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.