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 09:10:50 GMT

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

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

I actually ended up removing TRowMutations struct all together. 

{code}
  /**
   * mutateRow performs multiple mutations atomically on a single row.
  */
  void mutateRow(
    /** table to apply the mutations */
    1: required binary table,

    /** row that the mutations get applied to */
    2: required binary row,
  
    /** list of mutations to apply */
    3: required List<TMutation> mutations
  
  ) throws (1: TIOError io)
{code}

I can create a patch for this if this is approved. 
                
> 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
>             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