@Override
            public MetricName metricName(String name, Map<String, String> tags) {
                // Override the group and type names for compatibility - this metrics group was previously defined within
                // a Scala object named `kafka.log.LogFlushStats`
                return KafkaMetricsGroup.explicitMetricName("kafka.log", "LogFlushStats", name, tags);
            }
A segment of the log. Each segment has two components: a log and an index. The log is a FileRecords containing
the actual messages. The index is an OffsetIndex that maps from logical offsets to physical file positions. Each
segment has a base offset which is an offset <= the least offset of any message in this segment and > any offset in
any previous segment.

A segment with a base offset of [base_offset] would be stored in two files, a [base_offset].index and a [base_offset].log file.

This class is not thread-safe.
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegment.java