Package org.apache.iceberg.flink.data
Class FlinkAvroReader
java.lang.Object
org.apache.iceberg.flink.data.FlinkAvroReader
- All Implemented Interfaces:
org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
,SupportsRowPosition
public class FlinkAvroReader
extends Object
implements org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>, SupportsRowPosition
-
Constructor Summary
ConstructorDescriptionFlinkAvroReader
(Schema expectedSchema, org.apache.avro.Schema readSchema) FlinkAvroReader
(Schema expectedSchema, org.apache.avro.Schema readSchema, Map<Integer, ?> constants) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.data.RowData
read
(org.apache.flink.table.data.RowData reuse, org.apache.avro.io.Decoder decoder) void
setRowPositionSupplier
(Supplier<Long> posSupplier) void
setSchema
(org.apache.avro.Schema newFileSchema)
-
Constructor Details
-
FlinkAvroReader
-
FlinkAvroReader
-
-
Method Details
-
setSchema
public void setSchema(org.apache.avro.Schema newFileSchema) - Specified by:
setSchema
in interfaceorg.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
-
read
public org.apache.flink.table.data.RowData read(org.apache.flink.table.data.RowData reuse, org.apache.avro.io.Decoder decoder) throws IOException - Specified by:
read
in interfaceorg.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
- Throws:
IOException
-
setRowPositionSupplier
- Specified by:
setRowPositionSupplier
in interfaceSupportsRowPosition
-