@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public abstract class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message> extends Object implements RowProcessor<S,T>
| Constructor and Description |
|---|
BaseRowProcessor() |
| Modifier and Type | Method and Description |
|---|---|
List<UUID> |
getClusterIds() |
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 IOException
RowProcessorpreProcess in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>region - the HRegionwalEdit - the output WAL edits to apply to write ahead logIOExceptionpublic void preBatchMutate(HRegion region, WALEdit walEdit) throws IOException
RowProcessorpreBatchMutate in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>walEdit - the output WAL edits to apply to write ahead logIOExceptionpublic void postBatchMutate(HRegion region) throws IOException
RowProcessorRowProcessor.postProcess(HRegion, WALEdit, boolean) is this hook will
be executed before the mvcc transaction completion.postBatchMutate in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>IOExceptionpublic void postProcess(HRegion region, WALEdit walEdit, boolean success) throws IOException
RowProcessorpostProcess in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>region - the HRegionwalEdit - the output WAL edits to apply to write ahead logsuccess - true if batch operation is successful otherwise false.IOExceptionpublic List<UUID> getClusterIds()
getClusterIds in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>public String getName()
RowProcessorgetName in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>public Durability useDurability()
useDurability in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>Durability to useCopyright © 2014 The Apache Software Foundation. All rights reserved.