hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars George (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8779) add mutateRow method support to thrift2
Date Wed, 17 Jul 2013 10:22:48 GMT

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

Lars George commented on HBASE-8779:
------------------------------------

Understood. I would like to keep this as close to the Java API as possible, and it does the
same thing, i.e. it creates the wrapper RowMutation with a specific row and then has a addPut()
and addDelete() that checks internally if the two match. So, if there is no other reason,
I suggest we go with the latter, the union TMutation approach. Since we use RowMutation in
the handler code we will get the same errors as the Java user does.

Makes sense?
                
> add mutateRow method support to thrift2
> ---------------------------------------
>
>                 Key: HBASE-8779
>                 URL: https://issues.apache.org/jira/browse/HBASE-8779
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Thrift
>            Reporter: duanhongyi
>              Labels: thrift2
>             Fix For: 0.94.11
>
>         Attachments: 0.94.patch
>
>
> examples py:
> TPut put = TPut()
> m1 = TMutation(put=put)
> TDelete single_delete = TDelete()
> m2 = TMutation(singleDelete=single_delete)
> row_mu = TRowMutations(row,[m1,m2])
> thbase_service.mutateRow(table,row_mu)  # atomically on a single row

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message