@Override
    public int baseSequence() {
        return RecordBatch.NO_SEQUENCE;
    }
This {@link RecordBatch} implementation is for magic versions 0 and 1. In addition to implementing
{@link RecordBatch}, it also implements {@link Record}, which exposes the duality of the old message
format in its handling of compressed messages. The wrapper record is considered the record batch in this
interface, while the inner records are considered the log records (though they both share the same schema).

In general, this class should not be used directly. Instances of {@link Records} provides access to this
class indirectly through the {@link RecordBatch} interface.
clients/src/main/java/org/apache/kafka/common/record/AbstractLegacyRecordBatch.java