Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 24988 invoked from network); 7 Feb 2008 20:13:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 20:13:29 -0000 Received: (qmail 79766 invoked by uid 500); 7 Feb 2008 20:13:22 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 79748 invoked by uid 500); 7 Feb 2008 20:13:22 -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 79739 invoked by uid 99); 7 Feb 2008 20:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 12:13:22 -0800 X-ASF-Spam-Status: No, hits=-2000.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; Thu, 07 Feb 2008 20:13:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5E47714079 for ; Thu, 7 Feb 2008 12:13:08 -0800 (PST) Message-ID: <2056910.1202415188741.JavaMail.jira@brutus> Date: Thu, 7 Feb 2008 12:13:08 -0800 (PST) From: "Jim Kellerman (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12566770#action_12566770 ] Jim Kellerman commented on HBASE-35: ------------------------------------ Note for future: please run 'ant package' instead of just 'ant' to build. This will detect any javadoc errors that may have been introduced. > [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 > Fix For: 0.2.0 > > Attachments: 35-v2.patch, 35-v3.patch, 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.