protected final void lastEntry(TimestampOffset lastEntry) {
        this.lastEntry = lastEntry;
    }
Truncates index to a known number of entries.
storage/src/main/java/org/apache/kafka/storage/internals/log/TimeIndex.java