org.apache.hadoop.hbase.coprocessor
Class MultiRowMutationEndpoint

java.lang.Object
  extended by org.apache.hadoop.hbase.coprocessor.BaseEndpointCoprocessor
      extended by org.apache.hadoop.hbase.coprocessor.MultiRowMutationEndpoint
All Implemented Interfaces:
Coprocessor, MultiRowMutationProtocol, CoprocessorProtocol, VersionedProtocol

public class MultiRowMutationEndpoint
extends BaseEndpointCoprocessor
implements MultiRowMutationProtocol

This class demonstrates how to implement atomic multi row transactions using HRegion.mutateRowsWithLocks(java.util.Collection, java.util.Collection) and Coprocessor endpoints.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.coprocessor.BaseEndpointCoprocessor
VERSION
 
Fields inherited from interface org.apache.hadoop.hbase.ipc.CoprocessorProtocol
VERSION
 
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER
 
Constructor Summary
MultiRowMutationEndpoint()
           
 
Method Summary
 void mutateRows(List<Mutation> mutations)
           
 
Methods inherited from class org.apache.hadoop.hbase.coprocessor.BaseEndpointCoprocessor
getEnvironment, getProtocolSignature, getProtocolVersion, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.ipc.VersionedProtocol
getProtocolSignature, getProtocolVersion
 

Constructor Detail

MultiRowMutationEndpoint

public MultiRowMutationEndpoint()
Method Detail

mutateRows

public void mutateRows(List<Mutation> mutations)
                throws IOException
Specified by:
mutateRows in interface MultiRowMutationProtocol
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.