Package io.trino.hive.formats.avro
Record Class NativeLogicalTypesAvroTypeBlockHandler.BytesDecimalBlockBuildingDecoder
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.NativeLogicalTypesAvroTypeBlockHandler.BytesDecimalBlockBuildingDecoder
- All Implemented Interfaces:
BlockBuildingDecoder
- Enclosing class:
NativeLogicalTypesAvroTypeBlockHandler
public static record NativeLogicalTypesAvroTypeBlockHandler.BytesDecimalBlockBuildingDecoder(DecimalType decimalType)
extends Record
implements BlockBuildingDecoder
-
Constructor Summary
ConstructorsConstructorDescriptionBytesDecimalBlockBuildingDecoder(DecimalType decimalType) Creates an instance of aBytesDecimalBlockBuildingDecoderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecimalTyperecord component.voiddecodeIntoBlock(org.apache.avro.io.Decoder decoder, BlockBuilder builder) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BytesDecimalBlockBuildingDecoder
Creates an instance of aBytesDecimalBlockBuildingDecoderrecord class.- Parameters:
decimalType- the value for thedecimalTyperecord component
-
-
Method Details
-
decodeIntoBlock
public void decodeIntoBlock(org.apache.avro.io.Decoder decoder, BlockBuilder builder) throws IOException - Specified by:
decodeIntoBlockin interfaceBlockBuildingDecoder- Throws:
IOException
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
decimalType
Returns the value of thedecimalTyperecord component.- Returns:
- the value of the
decimalTyperecord component
-