Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 01B85DDB3 for ; Mon, 3 Sep 2012 20:21:01 +0000 (UTC) Received: (qmail 61565 invoked by uid 500); 3 Sep 2012 20:20:59 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 61465 invoked by uid 500); 3 Sep 2012 20:20:59 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 61455 invoked by uid 99); 3 Sep 2012 20:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 20:20:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pablo@psafe.com designates 187.0.212.22 as permitted sender) Received: from [187.0.212.22] (HELO aherelay01.exch.emailtotal.com.br) (187.0.212.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 20:20:49 +0000 Received: from exchange.emailtotal.com.br (ahecas01.email.total [187.0.212.18]) by aherelay01.exch.emailtotal.com.br (Postfix) with ESMTP id 49278183C3 for ; Mon, 3 Sep 2012 17:20:26 -0300 (BRT) Received: from exchange.email.total ([fe80::116e:629c:3e8f:2c92]) by ahecas01.email.total ([fe80::e82d:d71b:9a94:21f6%10]) with mapi; Mon, 3 Sep 2012 17:20:05 -0300 From: Pablo Musa To: "user@hbase.apache.org" Date: Mon, 3 Sep 2012 17:22:21 -0300 Subject: Put and Increment atomically Thread-Topic: Put and Increment atomically Thread-Index: Ac2KEdKhwUQfKaxeSIqqpxFWD4miHA== Message-ID: Accept-Language: pt-BR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: pt-BR Content-Type: multipart/alternative; boundary="_000_BEA49F2A6463A14ABAF42251D9680FA433C636C263EXCHANGEemail_" MIME-Version: 1.0 --_000_BEA49F2A6463A14ABAF42251D9680FA433C636C263EXCHANGEemail_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey guys, I want to insert new columns into a row:fam and increment 2 of them atomica= lly. In other words, I am using columns as entries and I want to count them and = their sizes. For example, I want to insert these new columns: row1:f1:c1 =3D h_v_j row1:f1:c2 =3D g_r_w row1:f1:c3 =3D z_l_p row1:f1:c4 =3D n_m_j *The values are fixed size information which I used '_' as separator above. But I also want to keep track of how many columns do I have and sum one of the information. row1:f1:count =3D Increment(4) row1:f1:size =3D Increment(j+w+p+j) I can do them separately, send the puts and then send the increments, but I would like to know if it is possible to do it atomically. I did some search and found the link below, but it only talks about put/del= ete. Why not adding increment? http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/RowMutations= .html I don't know if it is clear enough. Thanks, Pablo --_000_BEA49F2A6463A14ABAF42251D9680FA433C636C263EXCHANGEemail_--