public Collection<Long> baseOffsets() {
        return values().stream().map(LogSegment::baseOffset).collect(Collectors.toList());
    }
@return the base offsets of all segments
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java