protected void updateEstimateConsumeBatchQuota(int numWrites, int numReads) {
    writeConsumed = estimateConsume(OperationType.MUTATE, numWrites, 100);

    if (useResultSizeBytes) {
      readConsumed = estimateConsume(OperationType.GET, numReads, 100);
    } else {
      // assume 1 block required for reads. this is probably a low estimate, which is okay
      readConsumed = numReads > 0 ? blockSizeBytes : 0;
    }

    writeCapacityUnitConsumed = calculateWriteCapacityUnit(writeConsumed);
    readCapacityUnitConsumed = calculateReadCapacityUnit(readConsumed);

    handlerUsageTimeConsumed = (numReads + numWrites) * estimatedHandlerUsagePerReq;
  }
Update estimate quota(read/write size/capacityUnits) which will be consumed
@param numWrites the number of write requests
@param numReads  the number of read requests
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/DefaultOperationQuota.java