public HoodieRecord<?> toHoodieRecord(String partitionPath) {
            HoodieKey hoodieKey = new HoodieKey(this.key, partitionPath);
            HoodieRecord<?> record = new HoodieAvroRecord<>(hoodieKey, data, operation);
            HoodieRecordLocation loc = new HoodieRecordLocation(instant, null);
            record.setCurrentLocation(loc);
            return record;
        }
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