Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 72004 invoked from network); 12 Apr 2011 17:54:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2011 17:54:46 -0000 Received: (qmail 90673 invoked by uid 500); 12 Apr 2011 17:54:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 90654 invoked by uid 500); 12 Apr 2011 17:54:46 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 90646 invoked by uid 99); 12 Apr 2011 17:54:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 17:54:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 17:54:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2A7B34C438 for ; Tue, 12 Apr 2011 17:54:06 +0000 (UTC) Date: Tue, 12 Apr 2011 17:54:06 +0000 (UTC) From: "Erik Onnen (JIRA)" To: issues@hbase.apache.org Message-ID: <634093612.52920.1302630846170.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2101803621.52905.1302630726879.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-3770) Make FilterList accept var arg Filters in its constructor as a convenience MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 filters = new ArrayList(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