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 84A96F5E3 for ; Sun, 28 Apr 2013 04:20:33 +0000 (UTC) Received: (qmail 77884 invoked by uid 500); 28 Apr 2013 04:20:31 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 77404 invoked by uid 500); 28 Apr 2013 04:20:28 -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 77351 invoked by uid 99); 28 Apr 2013 04:20:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Apr 2013 04:20:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Apr 2013 04:20:22 +0000 Received: by mail-lb0-f173.google.com with SMTP id 10so4815959lbf.18 for ; Sat, 27 Apr 2013 21:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=llCgjLMdS095LOk2E8wG81wlu46Z1EPtxMWrNxzWydo=; b=WrHuCEjFTUzXTlR+OzyjEMXSnG+PLY02au7pLkXJs4x40TcDnOgOTID+t8k0H7Zx2y RVt48tmZEyzdznkqLWRsZu8NyM7AkiiQZMpsLEGf1ehFt7WTt9UOGxvplPiRruZvYxzN v/m1kbJp62P3IEdfwsM8DLUF8s6FRJ93zosgtQOLcgkXnSLgWIdPLVvM+f3VwW9L0jKd qkwBenNBstBpjwh9i9dSTytgZwVXUCDwC8TcDvyAXL7MFcWcWoXYcdyBE4YyqMRfII7V VSkpUMXhzsx9rd16Jxc2yCIqSIa9UAqQGBEodGm/yUZ4cCD7cGyw4IRWpsn9jhGDQF3J DpZQ== MIME-Version: 1.0 X-Received: by 10.112.135.166 with SMTP id pt6mr6434185lbb.127.1367122800708; Sat, 27 Apr 2013 21:20:00 -0700 (PDT) Received: by 10.112.155.41 with HTTP; Sat, 27 Apr 2013 21:20:00 -0700 (PDT) In-Reply-To: <1367120054.11538.YahooMailNeo@web140602.mail.bf1.yahoo.com> References: <517BEA40.9070605@yahoo.de> <1367120054.11538.YahooMailNeo@web140602.mail.bf1.yahoo.com> Date: Sun, 28 Apr 2013 12:20:00 +0800 Message-ID: Subject: Re: Multi-CheckAnd... From: Ted Yu To: user@hbase.apache.org, lars hofhansl Content-Type: multipart/alternative; boundary=089e0115fd24e6925304db6414fe X-Virus-Checked: Checked by ClamAV on apache.org --089e0115fd24e6925304db6414fe Content-Type: text/plain; charset=ISO-8859-1 I think we can utilize HBASE-6712 for this work. Cheers On Sun, Apr 28, 2013 at 11:34 AM, lars hofhansl wrote: > It's not far fetched to add a checkAndMutate method/rpc to HBase. Put, > Delete, Increment (in trunk), and Append extend Mutation, so it would not > be too hard to add. > Could you file a jira and explain what you need specifically. I'm sure > somebody will step up and make a patch (unless you want to work on a patch > :) ). > > -- Lars > > > > ________________________________ > From: Em > To: "user@hbase.apache.org" > Sent: Saturday, April 27, 2013 8:09 AM > Subject: Multi-CheckAnd... > > > Hello list, > > I was wondering how to create a multi-row-mutation with > precondition-constraints. > > Something like this: > > public boolean[] multiCheckAndPut(byte[]row, byte[] family, byte[] > column, List puts); > > This looks a little bit ugly but illustrates the idea. > > Are there any alternatives that would fit the use-case? > > Kind regards, > Em > --089e0115fd24e6925304db6414fe--