code: public Compactor minorIndex(long index) {
      this.minorIndex = Math.max(this.minorIndex, index);
      Segment segment = segments.segment(minorIndex);
      if (segment != null) {
        compactIndex = segment.firstIndex();
      }
      return this;
    }
docs: Sets the maximum compaction index for minor compaction.
  
  @param index The maximum compaction index for minor compaction.
  @return The log compactor.