Package org.apache.hadoop.hbase.client
Interface SimpleRequestController.RowChecker
- All Known Implementing Classes:
SimpleRequestController.RequestHeapSizeChecker
,SimpleRequestController.RequestRowsChecker
,SimpleRequestController.SubmittedSizeChecker
,SimpleRequestController.TaskCountChecker
- Enclosing class:
- SimpleRequestController
static interface SimpleRequestController.RowChecker
Provide a way to control the flow of rows iteration.
-
Method Summary
Modifier and TypeMethodDescriptioncanTakeOperation
(HRegionLocation loc, long heapSizeOfRow) void
notifyFinal
(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow) Add the final ReturnCode to the checker.void
reset()
Reset the inner state.
-
Method Details
-
canTakeOperation
-
notifyFinal
Add the final ReturnCode to the checker. The ReturnCode may be reversed, so the checker need the final decision to update the inner state.- Parameters:
code
- The final decisionloc
- the destination of dataheapSizeOfRow
- the data size
-
reset
Reset the inner state.- Throws:
InterruptedIOException
-