Package io.trino.hive.formats.avro
Interface AvroTypeManager
- All Known Implementing Classes:
HiveAvroTypeManager,NativeLogicalTypesAvroTypeManager
public interface AvroTypeManager
-
Method Summary
Modifier and TypeMethodDescriptionoverrideBlockToAvroObject(org.apache.avro.Schema schema, Type type) Extract and convert the object from the given block at the given position and return the Avro Generic Data forum.
-
Method Details
-
overrideBlockToAvroObject
Optional<BiFunction<Block,Integer, overrideBlockToAvroObjectObject>> (org.apache.avro.Schema schema, Type type) throws AvroTypeException Extract and convert the object from the given block at the given position and return the Avro Generic Data forum. Type is either provided explicitly to the writer or derived from the schema using this interface.- Throws:
AvroTypeException
-