예제 #1
0
 private long calculateRecordSize(Record record) {
   return sizeEstimator.getCost(record);
 }
예제 #2
0
 private void resetSizeEstimator() {
   sizeEstimator.reset();
 }
예제 #3
0
 private void updateSizeEstimator(long recordSize) {
   sizeEstimator.add(recordSize);
 }