hbase-issues mailing list archives

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

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

Hamed Madani commented on HBASE-8779:
-------------------------------------

The reason I suggested to create the TMutation struc the way I did was that it makes mutateRow
less error prone. TDelete and TPut both can have multiple columns, and also a required field
for *row*. But the TMutation can not have mutiple columns or a row value.
                
> 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