@Override
    public T get(int index) {
      return itemFetcher.apply(index);
    }
@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