@Override
    public Iterable<FileChannelRecordBatch> batches() {
        return batches;
    }
Get an iterator over the record batches in the file. Note that the batches are
backed by the open file channel. When the channel is closed (i.e. when this instance
is closed), the batches will generally no longer be readable.
@return An iterator over the batches
clients/src/main/java/org/apache/kafka/common/record/FileRecords.java