@Override
    public boolean hasNext() {
        return this.batchIterator.hasNext();
    }
Reads a log file containing KRaft record batches.
metadata/src/main/java/org/apache/kafka/metadata/util/BatchFileReader.java