public class FlinkAvroReader
extends java.lang.Object
implements org.apache.avro.io.DatumReader<org.apache.flink.table.data.RowData>
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 |
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