Package io.trino.hive.formats.avro.model
Record Class AvroLogicalType.BytesDecimalLogicalType
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.AvroLogicalType.BytesDecimalLogicalType
- All Implemented Interfaces:
AvroLogicalType
- Enclosing interface:
AvroLogicalType
public static record AvroLogicalType.BytesDecimalLogicalType(int precision, int scale)
extends Record
implements AvroLogicalType
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.hive.formats.avro.model.AvroLogicalType
AvroLogicalType.BytesDecimalLogicalType, AvroLogicalType.DateLogicalType, AvroLogicalType.FixedDecimalLogicalType, AvroLogicalType.StringUUIDLogicalType, AvroLogicalType.TimeMicrosLogicalType, AvroLogicalType.TimeMillisLogicalType, AvroLogicalType.TimestampMicrosLogicalType, AvroLogicalType.TimestampMillisLogicalType -
Field Summary
Fields inherited from interface io.trino.hive.formats.avro.model.AvroLogicalType
DATE, DECIMAL, LOCAL_TIMESTAMP_MICROS, LOCAL_TIMESTAMP_MILLIS, TIME_MICROS, TIME_MILLIS, TIMESTAMP_MICROS, TIMESTAMP_MILLIS, UUID -
Constructor Summary
ConstructorsConstructorDescriptionBytesDecimalLogicalType(int precision, int scale) Creates an instance of aBytesDecimalLogicalTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theprecisionrecord component.intscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BytesDecimalLogicalType
public BytesDecimalLogicalType(int precision, int scale) Creates an instance of aBytesDecimalLogicalTyperecord class.- Parameters:
precision- the value for theprecisionrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
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 with '=='. -
precision
public int precision()Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
scale
public int scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-