Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 16921 invoked from network); 4 Feb 2008 21:17:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 21:17:31 -0000 Received: (qmail 90035 invoked by uid 500); 4 Feb 2008 21:17:23 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 90011 invoked by uid 500); 4 Feb 2008 21:17:23 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 89973 invoked by uid 99); 4 Feb 2008 21:17:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 13:17:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 21:17:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 48626714071 for ; Mon, 4 Feb 2008 13:17:08 -0800 (PST) Message-ID: <2233717.1202159828294.JavaMail.jira@brutus> Date: Mon, 4 Feb 2008 13:17:08 -0800 (PST) From: "Bryan Duxbury (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-35) [hbase] Make BatchUpdate public in the API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Duxbury updated HBASE-35: ------------------------------- Component/s: client > [hbase] Make BatchUpdate public in the API > ------------------------------------------ > > Key: HBASE-35 > URL: https://issues.apache.org/jira/browse/HBASE-35 > Project: Hadoop HBase > Issue Type: New Feature > Components: client > Reporter: Bryan Duxbury > Assignee: Bryan Duxbury > Attachments: 35.patch > > > Today, when you want to interact with a row in HBase, you start an update, make changes, and then commit the lock. This is fine for very simple applications. However, when you try to do things like support table operations as part of a MapReduce job, it becomes more difficult to support. > I propose that we create a new class, RowMutation (a la the Bigtable paper), which encapsulates a group of actions on a row, and make this available to API consumers. It might look something like: > {code} > RowMutation r = table.getMutation(row_key); > r.setTimestamp(1111); > r.put(new Text("colfam1:name", value)); > r.delete(new Text("colfam2:deleted")); > table.commit(r); > {code} > This syntax would supercede the existing startUpdate/commit format, which could be deprecated and mapped to a RowMutation behind the scenes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.