public Batch<ApiMessageAndVersion> batch() {
            return batch;
        }
Reads a log file containing KRaft record batches.
metadata/src/main/java/org/apache/kafka/metadata/util/BatchFileReader.java