[
https://issues.apache.org/jira/browse/HBASE-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Sell updated HBASE-746:
---------------------------
Attachment: HBASE-746-first.patch
I've attached a patch that is one possible solution.
in Hbase.thrift
Adds a struct MutationBatch. A MutationBatch contains a row and a list of
Mutations.
Adds to the Hbase thrift service. applyBatches(byte[] tableName,
list<MutationBatch> batches), and a timestamped version.
in ThriftServer
add the implementation of applyBatches, which just loops over the batches and
calls mutateRows for each.
This patch also changes ThriftServer where it uses ArrayList, it now uses List,
as that is what the new versions of thrift generate. So all the stuff in the
thrift.generated folder would need to be regenerated from the thrift file. I
generated them using thrift-20080411p1.
> Batching row mutations via thrift
> ---------------------------------
>
> Key: HBASE-746
> URL: https://issues.apache.org/jira/browse/HBASE-746
> Project: Hadoop HBase
> Issue Type: Improvement
> Components: thrift
> Affects Versions: 0.2.0
> Reporter: Tim Sell
> Priority: Minor
> Fix For: 0.2.0
>
> Attachments: HBASE-746-first.patch
>
>
> It would be nice to be able to send to thrift a whole bunch of rows and
> mutations to be applied to them. This will be very useful when doing a large
> initial dump to HBase as doing the serialization for each row separately is
> expensive.
> The ThriftServer could use however HBASE-48 is solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.