[ 
https://issues.apache.org/jira/browse/HBASE-5542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HBASE-5542:
-------------------------------

    Attachment: HBASE-5542.D2217.4.patch

sc updated the revision "HBASE-5542 [jira] Unify HRegion.mutateRowsWithLocks() 
and HRegion.processRow()".
Reviewers: tedyu, lhofhansl, JIRA

  I made several changes in this update.

  1. Add the post and pre process hook as suggested by Lars
  2. RowProcessorProtocol and BaseRowProcessorEndpoint
  3. Some refactor and renaming

  I add back the method RowProcessorProtocol.process(RowProcessor).
  I did this because I figured out the user can make their RowProcessor 
implementations as the inner classes of the endpoint.
  This way RowProcessor can be class-loaded with the endpoint.
  I have documented in the javadoc.

  The example can be found in the unit test.

REVISION DETAIL
  https://reviews.facebook.net/D2217

AFFECTED FILES
  
src/main/java/org/apache/hadoop/hbase/coprocessor/BaseRowProcessorEndpoint.java
  src/main/java/org/apache/hadoop/hbase/coprocessor/RowProcessor.java
  src/main/java/org/apache/hadoop/hbase/coprocessor/RowProcessorProtocol.java
  src/main/java/org/apache/hadoop/hbase/regionserver/BaseRowProcessor.java
  src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
  
src/main/java/org/apache/hadoop/hbase/regionserver/MultiRowMutationProcessor.java
  src/main/java/org/apache/hadoop/hbase/regionserver/RowProcessor.java
  src/test/java/org/apache/hadoop/hbase/coprocessor/TestProcessRowEndpoint.java
  
src/test/java/org/apache/hadoop/hbase/coprocessor/TestRowProcessorEndpoint.java

                
> Unify HRegion.mutateRowsWithLocks() and HRegion.processRow()
> ------------------------------------------------------------
>
>                 Key: HBASE-5542
>                 URL: https://issues.apache.org/jira/browse/HBASE-5542
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Scott Chen
>            Assignee: Scott Chen
>             Fix For: 0.96.0
>
>         Attachments: HBASE-5542.D2217.1.patch, HBASE-5542.D2217.2.patch, 
> HBASE-5542.D2217.3.patch, HBASE-5542.D2217.4.patch, HBASE-5542.D2217.5.patch
>
>
> mutateRowsWithLocks() does atomic mutations on multiple rows.
> processRow() does atomic read-modify-writes on a single row.
> It will be useful to generalize both and have a
> processRowsWithLocks() that does atomic read-modify-writes on multiple rows.
> This also helps reduce some redundancy in the codes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to