docs: VarOptItemsSketch<T> copyAndSetN(final boolean asSketch, final long adjustedN) {
      final VarOptItemsSketch<T> sketch;
      sketch = new VarOptItemsSketch<>(data_, weights_, k_,n_,
              currItemsAlloc_, rf_, h_, r_, totalWtR_);
  
      if (!asSketch) {
        sketch.marks_ = this.marks_;
        sketch.numMarksInH_ = this.numMarksInH_;
      }
  
      if (adjustedN >= 0) {
        sketch.n_ = adjustedN;
      }
  
      return sketch;
    }