docs: public CompactSketch<S> getResult() {
      if (count_ == 0) {
        return new CompactSketch<S>(null, null, theta_, isEmpty_);
      }
      final CompactSketch<S> result =
          new CompactSketch<S>(Arrays.copyOfRange(keys_, 0, count_),
              Arrays.copyOfRange(summaries_, 0, count_), theta_, isEmpty_);
      reset();
      return result;
    }