Class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
java.lang.Object
org.apache.hadoop.hbase.regionserver.BaseRowProcessor<S,T>
- All Implemented Interfaces:
RowProcessor<S,T>
@LimitedPrivate("Coprocesssor")
@Evolving
public abstract class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
extends Object
implements RowProcessor<S,T>
Base class for RowProcessor with some default implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns The cluster ids that have the change.getName()Human readable name of the processorvoidpostBatchMutate(HRegion region) The hook to be executed after the process() and applying the Mutations to region.voidpostProcess(HRegion region, WALEdit walEdit, boolean success) The hook to be executed after process() and applying the Mutations to region.voidpreBatchMutate(HRegion region, WALEdit walEdit) The hook to be executed after the process() but before applying the Mutations to region.voidpreProcess(HRegion region, WALEdit walEdit) The hook to be executed before process().Returns TheDurabilityto useMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.regionserver.RowProcessor
getRequestData, getResult, getRowsToLock, initialize, process, readOnly
-
Constructor Details
-
BaseRowProcessor
public BaseRowProcessor()
-
-
Method Details
-
preProcess
Description copied from interface:RowProcessorThe hook to be executed before process().- Specified by:
preProcessin interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> - Parameters:
region- the HRegionwalEdit- the output WAL edits to apply to write ahead log- Throws:
IOException
-
preBatchMutate
Description copied from interface:RowProcessorThe hook to be executed after the process() but before applying the Mutations to region. Also by the time this hook is called, mvcc transaction have started.- Specified by:
preBatchMutatein interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> walEdit- the output WAL edits to apply to write ahead log- Throws:
IOException
-
postBatchMutate
Description copied from interface:RowProcessorThe hook to be executed after the process() and applying the Mutations to region. The difference of this one withRowProcessor.postProcess(HRegion, WALEdit, boolean)is this hook will be executed before the mvcc transaction completion.- Specified by:
postBatchMutatein interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> - Throws:
IOException
-
postProcess
Description copied from interface:RowProcessorThe hook to be executed after process() and applying the Mutations to region.- Specified by:
postProcessin interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> - Parameters:
region- the HRegionwalEdit- the output WAL edits to apply to write ahead logsuccess- true if batch operation is successful otherwise false.- Throws:
IOException
-
getClusterIds
Description copied from interface:RowProcessorReturns The cluster ids that have the change.- Specified by:
getClusterIdsin interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
-
getName
Description copied from interface:RowProcessorHuman readable name of the processor- Specified by:
getNamein interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> - Returns:
- The name of the processor
-
useDurability
Description copied from interface:RowProcessorReturns TheDurabilityto use- Specified by:
useDurabilityin interfaceRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
-