|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Method Summary | |
---|---|
UUID |
getClusterId()
|
String |
getName()
Human readable name of the processor |
S |
getRequestData()
This method should return any additional data that is needed on the server side to construct the RowProcessor. |
T |
getResult()
Obtain the processing result. |
Collection<byte[]> |
getRowsToLock()
Rows to lock while operation. |
void |
initialize(S msg)
This method should initialize any field(s) of the RowProcessor with a parsing of the passed message bytes (used on the server side). |
void |
postProcess(HRegion region,
WALEdit walEdit)
The hook to be executed after process(). |
void |
preProcess(HRegion region,
WALEdit walEdit)
The hook to be executed before process(). |
void |
process(long now,
HRegion region,
List<KeyValue> mutations,
WALEdit walEdit)
HRegion handles the locks and MVCC and invokes this method properly. |
boolean |
readOnly()
Is this operation read only? If this is true, process() should not add any mutations or it throws IOException. |
Durability |
useDurability()
|
Method Detail |
---|
Collection<byte[]> getRowsToLock()
RowProcessor
to avoid deadlock.
T getResult()
boolean readOnly()
void process(long now, HRegion region, List<KeyValue> mutations, WALEdit walEdit) throws IOException
IsolationLevel.READ_UNCOMMITTED
for scan because
we advance MVCC after releasing the locks for optimization purpose.
now
- the current system millisecondregion
- the HRegionmutations
- the output mutations to apply to memstorewalEdit
- the output WAL edits to apply to write ahead log
IOException
void preProcess(HRegion region, WALEdit walEdit) throws IOException
region
- the HRegionwalEdit
- the output WAL edits to apply to write ahead log
IOException
void postProcess(HRegion region, WALEdit walEdit) throws IOException
region
- the HRegionwalEdit
- the output WAL edits to apply to write ahead log
IOException
UUID getClusterId()
String getName()
S getRequestData() throws IOException
initialize(Message msg)
method. If there is no RowProcessor
specific data then null should be returned.
IOException
void initialize(S msg) throws IOException
msg
-
IOException
Durability useDurability()
Durability
to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |