[ 
https://issues.apache.org/jira/browse/HBASE-4507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118487#comment-13118487
 ] 

Todd Lipcon commented on HBASE-4507:
------------------------------------

If we're going to add more functionality to checkAndPut I'd really rather do it 
with a clean API, like:

{code}
boolean atomicMutation(RowPredicates predicates, Action mutation);
{code}
used something like:
{code}
RowPredicates pred = new RowPredicates.Builder()
  .matchTimestamp(ComparisonOp.EQUALS, 12345)
  .matchCellValue(colFam, qual, ComparisonOp.EQUALS, val)
  .build();
Action mutation = new Put(...);
table.atomicMutation(pred, mutation);
{code}

so we don't have to add a new checkAndPut API for every combinatoric set of 
options and mutations
                
> Create checkAndPut variant that exposes timestamp / UUID
> --------------------------------------------------------
>
>                 Key: HBASE-4507
>                 URL: https://issues.apache.org/jira/browse/HBASE-4507
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Ted Yu
>            Assignee: stack
>
> Michael checked the checkAndPut which doesn't expose timestamp. A variant of 
> checkAndPut should be created to expose timestamp which is written into a 
> column specified by additional parameters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to