Return-Path: X-Original-To: apmail-incubator-accumulo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-accumulo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A569D80 for ; Tue, 20 Mar 2012 17:38:02 +0000 (UTC) Received: (qmail 97206 invoked by uid 500); 20 Mar 2012 17:38:02 -0000 Delivered-To: apmail-incubator-accumulo-dev-archive@incubator.apache.org Received: (qmail 97163 invoked by uid 500); 20 Mar 2012 17:38:02 -0000 Mailing-List: contact accumulo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: accumulo-dev@incubator.apache.org Delivered-To: mailing list accumulo-dev@incubator.apache.org Received: (qmail 97145 invoked by uid 99); 20 Mar 2012 17:38:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 17:38:02 +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, 20 Mar 2012 17:37:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2AD9EBD561 for ; Tue, 20 Mar 2012 17:37:38 +0000 (UTC) Date: Tue, 20 Mar 2012 17:37:37 +0000 (UTC) From: "Eric Newton (Commented) (JIRA)" To: accumulo-dev@incubator.apache.org Message-ID: <1611803153.37354.1332265058177.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <223168153.37352.1332264938278.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (ACCUMULO-477) inconsistent names and duplicate methods in IteratorSettings 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/ACCUMULO-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233598#comment-13233598 ] Eric Newton commented on ACCUMULO-477: -------------------------------------- I responded: {quote} I don't know why there are duplicate methods for the same concept. I propose we add getOptions, and deprecate getProperties, setProperties, hasProperties. And getOptions should return an unmodifiable map. I disagree about the generic names; I like short names. Eclipse finds references pretty well. {quote} > inconsistent names and duplicate methods in IteratorSettings > ------------------------------------------------------------- > > Key: ACCUMULO-477 > URL: https://issues.apache.org/jira/browse/ACCUMULO-477 > Project: Accumulo > Issue Type: Improvement > Components: client > Reporter: David Medinets > Assignee: Eric Newton > Priority: Trivial > Fix For: 1.4.1 > > > David Medinets noticed > {quote} > A Property object used to hold key-value information used to modify > the behavior of an Interator. However, these are the methods > available: > {noformat} > getProperties > setProperties > hasProperties > addOption > removeOption > addOptions > clearOptions > {noformat} > Is there a reason why the same concept as two names? I'd like to > settle on one name and standardise. > Could we change the names to be something like > getInteratorSettingProperties? I know that some people are annoyed by > longer method names, but when searching through a code base, have > unique names is handy. Searching for a generically named method - such > as getProperties, returns a lot of false positives. > {quote} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira