Package org.apache.hadoop.hbase.client
Class SimpleRequestController.RequestRowsChecker
java.lang.Object
org.apache.hadoop.hbase.client.SimpleRequestController.RequestRowsChecker
- All Implemented Interfaces:
SimpleRequestController.RowChecker
- Enclosing class:
- SimpleRequestController
static class SimpleRequestController.RequestRowsChecker
extends Object
implements SimpleRequestController.RowChecker
limit the number of rows for each request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanTakeOperation(HRegionLocation loc, long heapSizeOfRow) voidnotifyFinal(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow) Add the final ReturnCode to the checker.voidreset()Reset the inner state.
-
Field Details
-
maxRowsPerRequest
-
serverRows
-
-
Constructor Details
-
RequestRowsChecker
RequestRowsChecker(long maxRowsPerRequest)
-
-
Method Details
-
reset
Description copied from interface:SimpleRequestController.RowCheckerReset the inner state.- Specified by:
resetin interfaceSimpleRequestController.RowChecker
-
canTakeOperation
- Specified by:
canTakeOperationin interfaceSimpleRequestController.RowChecker
-
notifyFinal
Description copied from interface:SimpleRequestController.RowCheckerAdd the final ReturnCode to the checker. The ReturnCode may be reversed, so the checker need the final decision to update the inner state.- Specified by:
notifyFinalin interfaceSimpleRequestController.RowChecker- Parameters:
code- The final decisionloc- the destination of dataheapSizeOfRow- the data size
-