static class SimpleRequestController.RequestRowsChecker extends Object implements SimpleRequestController.RowChecker
Modifier and Type | Field and Description |
---|---|
private long |
maxRowsPerRequest |
private Map<ServerName,Long> |
serverRows |
Constructor and Description |
---|
RequestRowsChecker(long maxRowsPerRequest) |
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 maxRowsPerRequest
private final Map<ServerName,Long> serverRows
RequestRowsChecker(long maxRowsPerRequest)
public void reset()
SimpleRequestController.RowChecker
reset
in interface SimpleRequestController.RowChecker
public RequestController.ReturnCode canTakeOperation(HRegionLocation loc, long heapSizeOfRow)
canTakeOperation
in interface SimpleRequestController.RowChecker
public void notifyFinal(RequestController.ReturnCode code, HRegionLocation loc, long heapSizeOfRow)
SimpleRequestController.RowChecker
notifyFinal
in interface SimpleRequestController.RowChecker
code
- The final decisionloc
- the destination of dataheapSizeOfRow
- the data sizeCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.