@Override
    public void append(MemoryRecords records) {
        writer.append(records);
    }
Constructs a {@code RawSnapshotWriter}.

@param writer the raw snapshot writer
@param callback the consumer to call when freeze succeeds
raft/src/main/java/org/apache/kafka/snapshot/NotifyingRawSnapshotWriter.java