You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2011/04/13 06:28:05 UTC

[jira] [Assigned] (HBASE-3770) Make FilterList accept var arg Filters in its constructor as a convenience

     [ https://issues.apache.org/jira/browse/HBASE-3770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack reassigned HBASE-3770:
----------------------------

    Assignee: Erik Onnen

> Make FilterList accept var arg Filters in its constructor as a convenience
> --------------------------------------------------------------------------
>
>                 Key: HBASE-3770
>                 URL: https://issues.apache.org/jira/browse/HBASE-3770
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.3
>            Reporter: Erik Onnen
>            Assignee: Erik Onnen
>            Priority: Minor
>             Fix For: 0.90.3
>
>         Attachments: HBASE-3770.patch
>
>
> When using a small number of Filters for a FilterList, it's cleaner to use var args rather than forcing a list on the client. Compare:
> scan.setFilter(new FilterList(FilterList.Operator.MUST_PASS_ALL, new FirstKeyOnlyFilter(), new KeyOnlyFilter()));
> vs:
> List<Filter> filters = new ArrayList<Filter>(2);
> filters.add(new FilrstKeyOnlyFilter());
> filters.add(new KeyOnlyFilter());
> scan.setFilter(new FilterList(FilterList.Operator.MUST_PASS_ALL, filters);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira