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 9733E11E98 for ; Wed, 24 Sep 2014 17:39:17 +0000 (UTC) Received: (qmail 53396 invoked by uid 500); 24 Sep 2014 17:39:17 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 53351 invoked by uid 500); 24 Sep 2014 17:39:17 -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 53340 invoked by uid 99); 24 Sep 2014 17:39:16 -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, 24 Sep 2014 17:39:16 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B22CE8AFE76; Wed, 24 Sep 2014 17:39:16 +0000 (UTC) From: keith-turner To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request: ACCUMULO-3089: Create volume chooser from t... Content-Type: text/plain Message-Id: <20140924173916.B22CE8AFE76@tyr.zones.apache.org> Date: Wed, 24 Sep 2014 17:39:16 +0000 (UTC) Github user keith-turner commented on a diff in the pull request: https://github.com/apache/accumulo/pull/16#discussion_r17987075 --- Diff: core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java --- @@ -103,6 +103,25 @@ void create(String tableName, boolean versioningIter, TimeType timeType) throws AccumuloException, AccumuloSecurityException, TableExistsException; /** + * @param tableName + * the name of the table + * @param limitVersion + * Enables/disables the versioning iterator, which will limit the number of Key versions kept. + * @param timeType + * specifies logical or real-time based time recording for entries in the table + * @param properties + * initial table properties the user wants + * @throws AccumuloException + * if a general error occurs + * @throws AccumuloSecurityException + * if the user does not have permission + * @throws TableExistsException + * if the table already exists + */ + void create(String tableName, boolean limitVersion, TimeType timeType, Map properties) throws AccumuloException, AccumuloSecurityException, --- End diff -- Instead of introducing yet another create table method, we could create a NewTableConfiguration class and pass that. ```java public class NewTableConfiguration { public NewTableConfiguration setTimeType(TimeType tt){...} public NewTableConfiguration setLimitVersions(boolean lv){...} public NewTableConfiguration setProperties(Map properties){...} } ``` And add a method like the following, and possibly deprecated existing create table methods (except for create(String) ) ```java void create(String tableName, NewTableConfig ntc) ``` --- 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. ---