Search in sources :

Example 1 with BinaryFormat

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());
    }
}
Also used : BinaryRowData(org.apache.flink.table.data.binary.BinaryRowData) BinaryFormat(org.apache.flink.table.data.binary.BinaryFormat)

Aggregations

BinaryFormat (org.apache.flink.table.data.binary.BinaryFormat)1 BinaryRowData (org.apache.flink.table.data.binary.BinaryRowData)1