public TimestampOffset lastEntry() {
        return lastEntry;
    }
Remove all entries from the index which have an offset greater than or equal to the given offset.
Truncating to an offset larger than the largest in the index has no effect.
storage/src/main/java/org/apache/kafka/storage/internals/log/TimeIndex.java