hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HBASE-3770) Make FilterList accept var arg Filters in its constructor as a convenience
Date Wed, 13 Apr 2011 04:28:05 GMT

     [ 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

Mime
View raw message