Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3888A114F9 for ; Fri, 20 Jun 2014 21:02:25 +0000 (UTC) Received: (qmail 17139 invoked by uid 500); 20 Jun 2014 21:02:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 17083 invoked by uid 500); 20 Jun 2014 21:02:25 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 17063 invoked by uid 99); 20 Jun 2014 21:02:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 21:02:24 +0000 Date: Fri, 20 Jun 2014 21:02:24 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11274) More general single-row Condition Mutation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039354#comment-14039354 ] Enis Soztutar commented on HBASE-11274: --------------------------------------- I like this. I was thinking expanding checkAndXXX() interfaces to accept a list of Conditions as well. Should we do more-generic single-row transactions? An example of an in-row transaction: - If Column A == 5, set Column B = Column C + Column D Our RowProcessor is kind-of doing that, but it is not easily consumable from client side right now. [~lhofhansl] FYI. > More general single-row Condition Mutation > ------------------------------------------ > > Key: HBASE-11274 > URL: https://issues.apache.org/jira/browse/HBASE-11274 > Project: HBase > Issue Type: Improvement > Reporter: Liu Shaohui > Priority: Minor > Attachments: HBASE-11274-trunk-v1.diff > > > Currently, the checkAndDelete and checkAndPut interface only support atomic mutation with single condition. But in actual apps, we need more general condition-mutation that support multi conditions and logical expression with those conditions. > For example, to support the following sql > {quote} > insert row where (column A == 'X' and column B == 'Y') or (column C == 'z') > {quote} > Suggestions are welcomed. -- This message was sent by Atlassian JIRA (v6.2#6252)