Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D75ED213 for ; Sat, 3 Nov 2012 01:14:12 +0000 (UTC) Received: (qmail 8733 invoked by uid 500); 3 Nov 2012 01:14:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8699 invoked by uid 500); 3 Nov 2012 01:14:12 -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 8688 invoked by uid 99); 3 Nov 2012 01:14:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 01:14:12 +0000 Date: Sat, 3 Nov 2012 01:14:12 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: <335356980.63958.1351905252437.JavaMail.jiratomcat@arcas> In-Reply-To: <646203704.62541.1351884672499.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HBASE-7088) Duplicate code in RowCounter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-7088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Marc Spaggiari updated HBASE-7088: --------------------------------------- Attachment: HBASE-7088.patch Removal of a small duplicate code. > Duplicate code in RowCounter > ---------------------------- > > Key: HBASE-7088 > URL: https://issues.apache.org/jira/browse/HBASE-7088 > Project: HBase > Issue Type: Improvement > Components: mapreduce > Affects Versions: 0.94.2 > Reporter: Jean-Marc Spaggiari > Assignee: Jean-Marc Spaggiari > Priority: Minor > Labels: mapreduce > Attachments: HBASE-7088.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > On the RowCounter mapreduce class, there is a "scan.setFilter(new FirstKeyOnlyFilter());" statement which is not required at line 125 since we have this on line 141: > if (qualifiers.size() == 0) { > scan.setFilter(new FirstKeyOnlyFilter()); > } else { > scan.setFilter(new FirstKeyValueMatchingQualifiersFilter(qualifiers)); > } > Should the line 125 simply be removed? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira