@InterfaceAudience.Private @InterfaceStability.Evolving public class ExceedOperationQuota extends DefaultOperationQuota
OperationQuota.OperationTypelimiters, readAvailable, readCapacityUnitConsumed, readCapacityUnitDiff, readConsumed, readDiff, writeCapacityUnitConsumed, writeCapacityUnitDiff, writeConsumed, writeDiffUSE_RESULT_SIZE_BYTES, USE_RESULT_SIZE_BYTES_DEFAULT| Constructor and Description |
|---|
ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
int blockSizeBytes,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkBatchQuota(int numWrites,
int numReads)
Checks if it is possible to execute the specified operation.
|
void |
checkScanQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest,
long maxScannerResultSize,
long maxBlockBytesScanned,
long prevBlockBytesScannedDifference)
Checks if it is possible to execute the scan.
|
void |
close()
Cleanup method on operation completion
|
addGetResult, addMutation, addScanResult, addScanResultCells, getReadAvailable, getReadConsumed, getScanReadConsumeEstimate, updateEstimateConsumeBatchQuota, updateEstimateConsumeScanQuotaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxResultSizepublic ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
int blockSizeBytes,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters)
public void checkBatchQuota(int numWrites,
int numReads)
throws RpcThrottlingException
OperationQuotacheckBatchQuota in interface OperationQuotacheckBatchQuota in class DefaultOperationQuotanumWrites - number of write operation that will be performednumReads - number of small-read operation that will be performedRpcThrottlingException - if the operation cannot be performed because RPC quota is
exceeded.public void checkScanQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest scanRequest, long maxScannerResultSize, long maxBlockBytesScanned, long prevBlockBytesScannedDifference) throws RpcThrottlingException
OperationQuotacheckScanQuota in interface OperationQuotacheckScanQuota in class DefaultOperationQuotascanRequest - the given scan operationmaxScannerResultSize - the maximum bytes to be returned by the scannermaxBlockBytesScanned - the maximum bytes scanned in a single RPC call by the
scannerprevBlockBytesScannedDifference - the difference between BBS of the previous two next
callsRpcThrottlingException - if the operation cannot be performed because RPC quota is
exceeded.public void close()
OperationQuotaclose in interface OperationQuotaclose in class DefaultOperationQuotaCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.