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