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 7F3D018CAE for ; Fri, 4 Dec 2015 03:00:16 +0000 (UTC) Received: (qmail 24403 invoked by uid 500); 4 Dec 2015 03:00:16 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 24356 invoked by uid 500); 4 Dec 2015 03:00:16 -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 24313 invoked by uid 99); 4 Dec 2015 03:00:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 03:00:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 249B02C1F71 for ; Fri, 4 Dec 2015 03:00:16 +0000 (UTC) Date: Fri, 4 Dec 2015 03:00:16 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2493) BinaryFormatter needs to be refactored 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-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15039659#comment-15039659 ] Josh Elser commented on ACCUMULO-2493: -------------------------------------- bq. Since adding an int maxLength option to Formatter.initialize would cause this issue to be brought up again whenever someone wants another configuration option down the road, I was thinking of changing Formatter.intialize to accept a hadoop Configuration object and let Formatters configure themselves. Good thinking. Convention-wise, we tend to make our own configuration objects instead of leveraging Hadoop Configuration objects. Examples include {{BatchWriterConfig}}, {{ClientConfiguration}}, {{ConditionalWriterConfig}}. I'd tend to go that route just for some consistency with the rest of the public API (assuming Formatters will eventually get pushed into the public API). WDYT? > BinaryFormatter needs to be refactored > -------------------------------------- > > Key: ACCUMULO-2493 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2493 > Project: Accumulo > Issue Type: Bug > Components: client > Reporter: Mike Drob > Assignee: Matt Dailey > Labels: newbie > Fix For: 1.7.1, 1.8.0 > > > BinaryFormatter is currently used in a couple places in the shell, but the code is hard to read and understand. There is a static getlength, which is actually a setter, and all the instance calls end up going through unnecessary static methods. > This combination makes it hard to reuse BinaryFormatter objects, or even use multiple, since the static state is likely to conflict. -- This message was sent by Atlassian JIRA (v6.3.4#6332)