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 EDAE6106AF for ; Wed, 9 Oct 2013 20:26:58 +0000 (UTC) Received: (qmail 22704 invoked by uid 500); 9 Oct 2013 20:26:48 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 22684 invoked by uid 500); 9 Oct 2013 20:26:47 -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 22575 invoked by uid 99); 9 Oct 2013 20:26:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2013 20:26:46 +0000 Date: Wed, 9 Oct 2013 20:26:46 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1757) Create BatchDeleter with a provided BatchWriter instead of creating a new one 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-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13790827#comment-13790827 ] Christopher Tubbs commented on ACCUMULO-1757: --------------------------------------------- {quote}BatchReaders really aren't made to be reused the way BatchWriters are. BatchReaders are destructive when they get repurposed.{quote} I'd hate for the API decision to be based on the subtleties of internal implementation, like the fact that BatchReaders and BatchWriters use threads differently. I like the idea of passing a ThreadPool as an option to createBatchDeleter and createBatchWriter. It's much more intuitive, and it can be easily added to BatchWriterConfig without mucking about with the main factory API. Alternatively, BatchWriter could extend BatchWriterConfig (and delegate the methods to its internal bwconfig field). BatchDeleter can check the type of the parameter and reuse it if it happens to be a BatchWriter. But, I like the ThreadPool parameter better. > Create BatchDeleter with a provided BatchWriter instead of creating a new one > ----------------------------------------------------------------------------- > > Key: ACCUMULO-1757 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1757 > Project: Accumulo > Issue Type: Improvement > Components: client > Reporter: John Vines > Priority: Minor > Fix For: 1.6.0 > > > For the BatchDeleter, you pass it all the configs you need to create both a Scanner and a BatchWriter for it to provide really convenient deletes. However, if a client already has a BatchWriter, it would be convenient to just hand it an existing BatchWriter to use instead of creating a separate one. -- This message was sent by Atlassian JIRA (v6.1#6144)