Record Class LogicalType.DecimalType
java.lang.Object
java.lang.Record
dev.hardwood.metadata.LogicalType.DecimalType
- Record Components:
precision- total number of digits (must be positive)scale- number of digits after the decimal point (must not exceed the precision)
- All Implemented Interfaces:
LogicalType
- Enclosing interface:
LogicalType
public static record LogicalType.DecimalType(int precision, int scale)
extends Record
implements LogicalType
Decimal with fixed precision and scale.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LogicalType
LogicalType.BsonType, LogicalType.DateType, LogicalType.DecimalType, LogicalType.EdgeInterpolationAlgorithm, LogicalType.EnumType, LogicalType.Float16Type, LogicalType.GeographyType, LogicalType.GeometryType, LogicalType.IntervalType, LogicalType.IntType, LogicalType.JsonType, LogicalType.ListType, LogicalType.MapType, LogicalType.NullType, LogicalType.StringType, LogicalType.TimestampType, LogicalType.TimeType, LogicalType.TimeUnit, LogicalType.UuidType, LogicalType.VariantType -
Constructor Summary
ConstructorsConstructorDescriptionDecimalType(int precision, int scale) Creates an instance of aDecimalTyperecord 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.toString()Returns a string representation of this record class.
-
Constructor Details
-
DecimalType
-
-
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 thecomparemethod from their corresponding wrapper classes. -
precision
-
scale
-