code: private void growReservoir() {
      currItemsAlloc_ = SamplingUtil.getAdjustedSize(reservoirSize_, currItemsAlloc_ * rf_.getValue());
      data_ = java.util.Arrays.copyOf(data_, currItemsAlloc_);
    }
docs: Increases allocated sampling size by (adjusted) ResizeFactor and copies items from old sampling.