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
-
Constructor Summary
-
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.
-
Field Details
-
maxRowsPerRequest
-
serverRows
-
-
Constructor Details
-
RequestRowsChecker
RequestRowsChecker(long maxRowsPerRequest)
-
-
Method Details
-
reset
Description copied from interface:SimpleRequestController.RowChecker
Reset the inner state.- Specified by:
reset
in interfaceSimpleRequestController.RowChecker
-
canTakeOperation
- Specified by:
canTakeOperation
in interfaceSimpleRequestController.RowChecker
-
notifyFinal
Description copied from interface:SimpleRequestController.RowChecker
Add 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:
notifyFinal
in interfaceSimpleRequestController.RowChecker
- Parameters:
code
- The final decisionloc
- the destination of dataheapSizeOfRow
- the data size
-