use of org.apache.flink.table.data.binary.BinaryFormat in project flink by apache.
the class AbstractBinaryWriter method writeRow.
@Override
public void writeRow(int pos, RowData input, RowDataSerializer serializer) {
if (input instanceof BinaryFormat) {
BinaryFormat row = (BinaryFormat) input;
writeSegmentsToVarLenPart(pos, row.getSegments(), row.getOffset(), row.getSizeInBytes());
} else {
BinaryRowData row = serializer.toBinaryRow(input);
writeSegmentsToVarLenPart(pos, row.getSegments(), row.getOffset(), row.getSizeInBytes());
}
}
Aggregations