Package org.apache.hadoop.hbase.client
Class SimpleRequestController.SubmittedSizeChecker
java.lang.Object
org.apache.hadoop.hbase.client.SimpleRequestController.SubmittedSizeChecker
- All Implemented Interfaces:
SimpleRequestController.RowChecker
- Enclosing class:
- SimpleRequestController
static class SimpleRequestController.SubmittedSizeChecker
extends Object
implements SimpleRequestController.RowChecker
limit the heapsize of total submitted data. Reduce the limit of heapsize for submitting quickly
if there is no running task.
-
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
-
maxHeapSizeSubmit
-
heapSize
-
-
Constructor Details
-
SubmittedSizeChecker
SubmittedSizeChecker(long maxHeapSizeSubmit)
-
-
Method Details
-
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
-
reset
Description copied from interface:SimpleRequestController.RowChecker
Reset the inner state.- Specified by:
reset
in interfaceSimpleRequestController.RowChecker
-