Package io.trino.hive.formats.avro.model
Record Class AvroLogicalType.FixedDecimalLogicalType
java.lang.Object
java.lang.Record
io.trino.hive.formats.avro.model.AvroLogicalType.FixedDecimalLogicalType
- All Implemented Interfaces:
AvroLogicalType
- Enclosing interface:
AvroLogicalType
public static record AvroLogicalType.FixedDecimalLogicalType(int precision, int scale, int fixedSize)
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
ConstructorsConstructorDescriptionFixedDecimalLogicalType(int precision, int scale, int fixedSize) Creates an instance of aFixedDecimalLogicalTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefixedSizerecord component.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
-
FixedDecimalLogicalType
public FixedDecimalLogicalType(int precision, int scale, int fixedSize) Creates an instance of aFixedDecimalLogicalTyperecord class.- Parameters:
precision- the value for theprecisionrecord componentscale- the value for thescalerecord componentfixedSize- the value for thefixedSizerecord 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
-
fixedSize
public int fixedSize()Returns the value of thefixedSizerecord component.- Returns:
- the value of the
fixedSizerecord component
-