Interface CellValueCodec.FieldEncoder
- All Superinterfaces:
Serializable
- Enclosing class:
- CellValueCodec
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Internal
public static interface CellValueCodec.FieldEncoder
extends Serializable
Reads one field of a row as the bytes of a cell.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]encode(org.apache.flink.table.data.RowData row, int pos) Encodes the field atpos.
-
Method Details
-
encode
byte[] encode(org.apache.flink.table.data.RowData row, int pos) Encodes the field atpos.- Parameters:
row- the row to readpos- the field's position in it- Returns:
- the cell bytes
-