static class SimpleRequestController.SubmittedSizeChecker extends Object implements SimpleRequestController.RowChecker
| Modifier and Type | Field and Description | 
|---|---|
private long | 
heapSize  | 
private long | 
maxHeapSizeSubmit  | 
| Constructor and Description | 
|---|
SubmittedSizeChecker(long maxHeapSizeSubmit)  | 
| Modifier and Type | Method and Description | 
|---|---|
RequestController.ReturnCode | 
canTakeOperation(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. 
 | 
private final long maxHeapSizeSubmit
private long heapSize
SubmittedSizeChecker(long maxHeapSizeSubmit)
public RequestController.ReturnCode canTakeOperation(HRegionLocation loc, long heapSizeOfRow)
canTakeOperation in interface SimpleRequestController.RowCheckerpublic void notifyFinal(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow)
SimpleRequestController.RowCheckernotifyFinal in interface SimpleRequestController.RowCheckercode - The final decisionloc - the destination of dataheapSizeOfRow - the data sizepublic void reset()
SimpleRequestController.RowCheckerreset in interface SimpleRequestController.RowCheckerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.