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

Lars Hofhansl commented on HBASE-4210:
--------------------------------------

Using RPC ID to tie individual hooks together works.

I also do like Anoops suggestion to pass an array of operations along with 
first and last. Specifically that would be batchOp.operations, firstIndex, and 
lastIndexExclusive. That way nothing needs to be copied and we still have the 
(semi) intuitive pattern that you get an array of operations along with what 
subset of is being handled now.

The RPC ID idea is cleaner; but it is harder to use by a hook and the preHooks 
are actually all run before any batch.
                
> Allow coprocessor to interact with batches per region sent from a client(?)
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-4210
>                 URL: https://issues.apache.org/jira/browse/HBASE-4210
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 0.94.0
>            Reporter: Lars Hofhansl
>            Assignee: Anoop Sam John
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.5
>
>
> Currently the coprocessor write hooks - {pre|post}{Put|Delete} - are strictly 
> one row|cell operations.
> It might be a good idea to allow a coprocessor to deal with batches of puts 
> and deletes as they arrive from the client.

--
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

Reply via email to