public class FlinkAvroReader extends java.lang.Object implements org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>, SupportsRowPosition
Constructor and Description |
---|
FlinkAvroReader(Schema expectedSchema,
org.apache.avro.Schema readSchema) |
FlinkAvroReader(Schema expectedSchema,
org.apache.avro.Schema readSchema,
java.util.Map<java.lang.Integer,?> constants) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.table.data.RowData |
read(org.apache.flink.table.data.RowData reuse,
org.apache.avro.io.Decoder decoder) |
void |
setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier) |
void |
setSchema(org.apache.avro.Schema newFileSchema) |
public FlinkAvroReader(Schema expectedSchema, org.apache.avro.Schema readSchema)
public FlinkAvroReader(Schema expectedSchema, org.apache.avro.Schema readSchema, java.util.Map<java.lang.Integer,?> constants)
public void setSchema(org.apache.avro.Schema newFileSchema)
setSchema
in interface org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
public org.apache.flink.table.data.RowData read(org.apache.flink.table.data.RowData reuse, org.apache.avro.io.Decoder decoder) throws java.io.IOException
read
in interface org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
java.io.IOException
public void setRowPositionSupplier(java.util.function.Supplier<java.lang.Long> posSupplier)
setRowPositionSupplier
in interface SupportsRowPosition