@Override
    public int hashCode() {
        return Objects.hash(logSegment, offsetIndex, timeIndex, transactionIndex, producerSnapshotIndex, leaderEpochIndex);
    }
@return Leader epoch index until this segment.
storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/LogSegmentData.java