Package io.trino.hive.formats.avro
Class AvroPageDataReader
java.lang.Object
io.trino.hive.formats.avro.AvroPageDataReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classUsed for throwingAvroTypeExceptionthrough interfaces that can not throw checked exceptions like DatumReader -
Constructor Summary
ConstructorsConstructorDescriptionAvroPageDataReader(org.apache.avro.Schema readerSchema, AvroTypeBlockHandler typeManager) -
Method Summary
-
Constructor Details
-
AvroPageDataReader
public AvroPageDataReader(org.apache.avro.Schema readerSchema, AvroTypeBlockHandler typeManager) throws AvroTypeException - Throws:
AvroTypeException
-
-
Method Details
-
setSchema
-
read
public Optional<Page> read(Optional<Page> ignoredReuse, org.apache.avro.io.Decoder decoder) throws IOException - Specified by:
readin interfaceorg.apache.avro.io.DatumReader<Optional<Page>>- Throws:
IOException
-
flush
-