docs: public long getCompactableIndex(long index) {
      Map.Entry<Long, JournalSegment<E>> segmentEntry = segments.floorEntry(index);
      return segmentEntry != null ? segmentEntry.getValue().index() : 0;
    }