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

Erik Onnen updated HBASE-3770:
------------------------------

        Fix Version/s: 0.90.3
    Affects Version/s: 0.90.3
               Status: Patch Available  (was: Open)

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

Reply via email to