@Override
    public void close() {
        for (Segment segment : segmentList.get()) {
            if (segment != null) {
                segment.close();
            }
        }
    }
FileSegments management. Contains two types FileSegment: data and index.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/msgstore/disk/FileSegmentList.java