Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FD39CD5D for ; Wed, 9 May 2012 14:32:16 +0000 (UTC) Received: (qmail 75426 invoked by uid 500); 9 May 2012 14:32:15 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 75380 invoked by uid 500); 9 May 2012 14:32:15 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 75371 invoked by uid 99); 9 May 2012 14:32:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:32:15 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of spines83@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:32:07 +0000 Received: by werc12 with SMTP id c12so323953wer.0 for ; Wed, 09 May 2012 07:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KIS0LxVNcwbTBdHC6uX8zXrWzpXKhtJyEw5psSGE6dk=; b=Qzwt0VDt4YQT5YNwgy8JHI/fmV9MhBEnu7YPkA7X+os6YDH2MS2+1dWMsXygtejZbm VdxarAubZaU+IGDaLnYS/vg/8BxDUpILbpC6Ug+CSRp4EbFljokBlYslZJhMctmafWSF iDsjVsdOr87KlqXRr4R0KK5z8bKz/KN+u8lJBnyTUYmQIAZYAL55nOppDSRc0ud9C0jM Dh5wEd14g3wf6lQG790nJCBXS+BUV86XUXDYJVJnsF7SWlO1flZDUGvnMaYCYYC5ufXG aNX2WavsIfFP1icw4BmYxgqm8YuragcjFKB6XVEwPKq+07FPK65fDvN4Qd1T+uJK2Jj/ Whtg== MIME-Version: 1.0 Received: by 10.180.90.233 with SMTP id bz9mr769643wib.21.1336573907153; Wed, 09 May 2012 07:31:47 -0700 (PDT) Received: by 10.223.9.135 with HTTP; Wed, 9 May 2012 07:31:46 -0700 (PDT) Date: Wed, 9 May 2012 10:31:46 -0400 Message-ID: Subject: Deleting rows from the Java API From: Sean Pines To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=f46d043be272f3b33004bf9b5cb9 --f46d043be272f3b33004bf9b5cb9 Content-Type: text/plain; charset=ISO-8859-1 * *I have a use case that involves me removing a record from Accumulo based on the Row ID and the Column Family. In the shell, I noticed the command "deletemany" which allows you to specify column family/column qualifier. Is there an equivalent of this in the Java API? In the Java API, I noticed the method: deleteRows(String tableName, org.apache.hadoop.io.Text start, org.apache.hadoop.io.Text end) Delete rows between (start, end] However that only seems to work for deleting a range of RowIDs I would also imagine that deleting rows is costly; is there a better way to approach something like this? The workaround I have for now is to just overwrite the row with an empty string in the value field and ignore any entries that have that. However this just leaves lingering rows for each "delete" and I'd like to avoid that if at all possible. Thanks! --f46d043be272f3b33004bf9b5cb9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have a use case t= hat involves me removing a record from Accumulo based on the Row ID and the= Column Family.

In the shell, I noticed the command "deletemany" which allows= you to specify column family/column qualifier. Is there an equivalent of t= his in the Java API?

In the Java API, I noticed the method:
delet= eRows(String tableName, org.apache.hadoop.io.Text start, org.apache.hadoop.= io.Text end)
=A0=A0=A0=A0=A0=A0=A0=A0 Delete rows between (start, end]

However th= at only seems to work for deleting a range of RowIDs

I would also im= agine that deleting rows is costly; is there a better way to approach somet= hing like this?
The workaround I have for now is to just overwrite the row with an empty st= ring in the value field and ignore any entries that have that. However this= just leaves lingering rows for each "delete" and I'd like to= avoid that if at all possible.

Thanks!
--f46d043be272f3b33004bf9b5cb9--