Package io.trino.hive.formats.avro
Class HiveAvroTypeManager
java.lang.Object
io.trino.hive.formats.avro.NativeLogicalTypesAvroTypeManager
io.trino.hive.formats.avro.HiveAvroTypeManager
- All Implemented Interfaces:
AvroTypeManager
-
Nested Class Summary
Nested classes/interfaces inherited from class io.trino.hive.formats.avro.NativeLogicalTypesAvroTypeManager
NativeLogicalTypesAvroTypeManager.InvalidNativeAvroLogicalType, NativeLogicalTypesAvroTypeManager.NoLogicalType, NativeLogicalTypesAvroTypeManager.NonNativeAvroLogicalType, NativeLogicalTypesAvroTypeManager.ValidateLogicalTypeResult, NativeLogicalTypesAvroTypeManager.ValidNativeAvroLogicalType -
Field Summary
Fields inherited from class io.trino.hive.formats.avro.NativeLogicalTypesAvroTypeManager
DATE_SCHEMA, TIME_MICROS_SCHEMA, TIME_MILLIS_SCHEMA, TIMESTAMP_MICROS_SCHEMA, TIMESTAMP_MILLIS_SCHEMA, UUID_SCHEMA -
Constructor Summary
Constructors -
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.Methods inherited from class io.trino.hive.formats.avro.NativeLogicalTypesAvroTypeManager
fitBigEndianValueToByteArraySize, fitBigEndianValueToByteArraySize, fitBigEndianValueToByteArraySize, fromBigEndian, padBigEndianToSize, padBigEndianToSize, padBigEndianToSize, validateLogicalType
-
Constructor Details
-
HiveAvroTypeManager
public HiveAvroTypeManager()
-
-
Method Details
-
overrideBlockToAvroObject
public Optional<BiFunction<Block,Integer, overrideBlockToAvroObjectObject>> (org.apache.avro.Schema schema, Type type) throws AvroTypeException Description copied from interface:AvroTypeManagerExtract 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.- Specified by:
overrideBlockToAvroObjectin interfaceAvroTypeManager- Overrides:
overrideBlockToAvroObjectin classNativeLogicalTypesAvroTypeManager- Throws:
AvroTypeException
-