SortedMap<Offset, Offset> getBeforeAndAfterIndexSegmentOffsetsForCurrentCycle() {
    if (currentIdx == -1) {
      throw new IllegalArgumentException(file.getName() + "Current Index is -1, no current cycle");
    }
    return getBeforeAndAfterIndexSegmentOffsetsForLogSegments(
        getCurrentCycleLog().compactionDetails.getLogSegmentsUnderCompaction());
  }
Return index segment offset map for current cycle. Each key offset's LogSegmentName has to be in current cycle.
ambry-store/src/main/java/com/github/ambry/store/CompactionLog.java