accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubbsii <>
Subject [GitHub] accumulo pull request: ACCUMULO-2841 Add Arbitrary Table Propertie...
Date Wed, 10 Sep 2014 20:39:34 GMT
Github user ctubbsii commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/client/admin/
    @@ -430,6 +430,21 @@ void rename(String oldTableName, String newTableName) throws AccumuloSecurityExc
        *           if the table does not exist
       Iterable<Entry<String,String>> getProperties(String tableName) throws AccumuloException,
    +  /**
    +   * 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 or file a JIRA ticket
with INFRA.

View raw message