@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public abstract class BaseRowProcessor<S extends Message,T extends Message> extends java.lang.Object implements RowProcessor<S,T>
| Constructor and Description |
|---|
BaseRowProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.UUID> |
getClusterIds() |
java.lang.String |
getName()
Human readable name of the processor
|
void |
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().
|
Durability |
useDurability() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestData, getResult, getRowsToLock, initialize, process, readOnlypublic void preProcess(HRegion region, WALEdit walEdit) throws java.io.IOException
RowProcessorpreProcess in interface RowProcessor<S extends Message,T extends Message>region - the HRegionwalEdit - the output WAL edits to apply to write ahead logjava.io.IOExceptionpublic void preBatchMutate(HRegion region, WALEdit walEdit) throws java.io.IOException
RowProcessorpreBatchMutate in interface RowProcessor<S extends Message,T extends Message>walEdit - the output WAL edits to apply to write ahead logjava.io.IOExceptionpublic void postBatchMutate(HRegion region) throws java.io.IOException
RowProcessorRowProcessor.postProcess(HRegion, WALEdit, boolean) is this hook will
be executed before the mvcc transaction completion.postBatchMutate in interface RowProcessor<S extends Message,T extends Message>java.io.IOExceptionpublic void postProcess(HRegion region, WALEdit walEdit, boolean success) throws java.io.IOException
RowProcessorpostProcess in interface RowProcessor<S extends Message,T extends Message>region - the HRegionwalEdit - the output WAL edits to apply to write ahead logsuccess - true if batch operation is successful otherwise false.java.io.IOExceptionpublic java.util.List<java.util.UUID> getClusterIds()
getClusterIds in interface RowProcessor<S extends Message,T extends Message>public java.lang.String getName()
RowProcessorgetName in interface RowProcessor<S extends Message,T extends Message>public Durability useDurability()
useDurability in interface RowProcessor<S extends Message,T extends Message>Durability to use