Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD43511E9F for ; Wed, 24 Sep 2014 17:39:35 +0000 (UTC) Received: (qmail 54369 invoked by uid 500); 24 Sep 2014 17:39:35 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 54334 invoked by uid 500); 24 Sep 2014 17:39:35 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 54320 invoked by uid 99); 24 Sep 2014 17:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2014 17:39:35 +0000 Date: Wed, 24 Sep 2014 17:39:35 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-3089) Create a volume chooser that makes decisions based on table attributes 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/ACCUMULO-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146585#comment-14146585 ] ASF GitHub Bot commented on ACCUMULO-3089: ------------------------------------------ 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) ``` > Create a volume chooser that makes decisions based on table attributes > ---------------------------------------------------------------------- > > Key: ACCUMULO-3089 > URL: https://issues.apache.org/jira/browse/ACCUMULO-3089 > Project: Accumulo > Issue Type: Improvement > Reporter: Christopher Tubbs > Assignee: Jenna Huston > > Use case: > User provisions multiple volumes, some with tmpfs drives, some with SSDs, some with traditional magnetic spindle hard drives. A volume chooser could use attribute information on tables (ACCUMULO-2841) to decide which volume to choose when creating new tablets. -- This message was sent by Atlassian JIRA (v6.3.4#6332)