Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4762A11209 for ; Wed, 10 Sep 2014 20:39:35 +0000 (UTC) Received: (qmail 40365 invoked by uid 500); 10 Sep 2014 20:39:35 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 40317 invoked by uid 500); 10 Sep 2014 20:39:35 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 39540 invoked by uid 99); 10 Sep 2014 20:39:34 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2014 20:39:34 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2A98D888553; Wed, 10 Sep 2014 20:39:34 +0000 (UTC) From: ctubbsii To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request: ACCUMULO-2841 Add Arbitrary Table Propertie... Content-Type: text/plain Message-Id: <20140910203934.2A98D888553@tyr.zones.apache.org> Date: Wed, 10 Sep 2014 20:39:34 +0000 (UTC) Github user ctubbsii commented on a diff in the pull request: https://github.com/apache/accumulo/pull/15#discussion_r17387225 --- Diff: core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java --- @@ -430,6 +430,21 @@ void rename(String oldTableName, String newTableName) throws AccumuloSecurityExc * if the table does not exist */ Iterable> getProperties(String tableName) throws AccumuloException, TableNotFoundException; + + /** + * Gets a specific property given its key. Note that recently changed properties may not be available immediately. + * + * @param tableName + * the name of the table + * @param property + * the name of a per-table property + * @throws TableNotFoundException + * if the table does not exist + * @throws AccumuloException + * if a general error occurs * + * @return value of the specified property, null if property does not exist + */ + String getProperty(String tableName, String property)throws AccumuloException, TableNotFoundException; --- End diff -- This API change can be part of a separate issue. Now that you've pointed it out, it seems like an obvious oversight in our API (who wants to iterate over an iterable to get one property?), but it is probably outside the scope of this. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---