hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11274) More general single-row Condition Mutation
Date Fri, 20 Jun 2014 21:02:24 GMT

    [ 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

View raw message