public static DataItem fromHoodieRecord(HoodieRecord<?> record) {
            return new DataItem(
                    record.getRecordKey(),
                    record.getCurrentLocation().getInstantTime(),
                    ((HoodieAvroRecord) record).getData(),
                    record.getOperation());
        }
Represents a data item in the buffer, this is needed to reduce the
memory footprint.

<p>A {@link HoodieRecord} was firstly transformed into a {@link DataItem}
for buffering, it then transforms back to the {@link HoodieRecord} before flushing.
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/hudi/src/main/java/org/apache/inlong/sort/hudi/sink/StreamWriteFunction.java