@Override
    public int size() {
      return currentSize.getAsInt();
    }
@param currentSize the current number of elements in the dataset.
@param itemFetcher a function that returns the element at the provided index.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java