|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.BaseRowProcessor<S,T>
@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public abstract class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Base class for RowProcessor with some default implementations.
| Constructor Summary | |
|---|---|
BaseRowProcessor()
|
|
| Method Summary | |
|---|---|
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()
|
| 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.regionserver.RowProcessor |
|---|
getRequestData, getResult, getRowsToLock, initialize, process, readOnly |
| Constructor Detail |
|---|
public BaseRowProcessor()
| Method Detail |
|---|
public void preProcess(HRegion region,
WALEdit walEdit)
throws IOException
RowProcessor
preProcess 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 log
IOException
public void preBatchMutate(HRegion region,
WALEdit walEdit)
throws IOException
RowProcessor
preBatchMutate 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 log
IOException
public 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>IOException
public void postProcess(HRegion region,
WALEdit walEdit,
boolean success)
throws IOException
RowProcessor
postProcess 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()
RowProcessor
getName 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 use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||