code: Result getSamplesAsArrays() {
      if ((r_ + h_) == 0) {
        return null;
      }
  
      final int validIndex = (h_ == 0 ? 1 : 0);
      final Class<?> clazz = data_.get(validIndex).getClass();
      return getSamplesAsArrays(clazz);
    }
docs: Returns a VarOptItemsSketch.Result structure containing the items and weights in separate
  lists. The returned list lengths may be smaller than the total capacity.
  
  @return A Result object containing items and weights.