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
-
Method Summary
Modifier and TypeMethodDescriptionReturns The cluster ids that have the change.getName()
Human readable name of the processorvoid
postBatchMutate
(HRegion region) The hook to be executed after the process() and applying the Mutations to region.void
postProcess
(HRegion region, WALEdit walEdit, boolean success) The hook to be executed after process() and applying the Mutations to region.void
preBatchMutate
(HRegion region, WALEdit walEdit) The hook to be executed after the process() but before applying the Mutations to region.void
preProcess
(HRegion region, WALEdit walEdit) The hook to be executed before process().Returns TheDurability
to useMethods 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.regionserver.RowProcessor
getRequestData, getResult, getRowsToLock, initialize, process, readOnly
-
Constructor Details
-
BaseRowProcessor
public BaseRowProcessor()
-
-
Method Details
-
preProcess
Description copied from interface:RowProcessor
The hook to be executed before process().- Specified by:
preProcess
in 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:RowProcessor
The 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:
preBatchMutate
in 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:RowProcessor
The 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:
postBatchMutate
in interfaceRowProcessor<S extends com.google.protobuf.Message,
T extends com.google.protobuf.Message> - Throws:
IOException
-
postProcess
Description copied from interface:RowProcessor
The hook to be executed after process() and applying the Mutations to region.- Specified by:
postProcess
in 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:RowProcessor
Returns The cluster ids that have the change.- Specified by:
getClusterIds
in interfaceRowProcessor<S extends com.google.protobuf.Message,
T extends com.google.protobuf.Message>
-
getName
Description copied from interface:RowProcessor
Human readable name of the processor- Specified by:
getName
in interfaceRowProcessor<S extends com.google.protobuf.Message,
T extends com.google.protobuf.Message> - Returns:
- The name of the processor
-
useDurability
Description copied from interface:RowProcessor
Returns TheDurability
to use- Specified by:
useDurability
in interfaceRowProcessor<S extends com.google.protobuf.Message,
T extends com.google.protobuf.Message>
-