Record Class CoercionUtils.CoercionContext
java.lang.Object
java.lang.Record
io.trino.plugin.hive.coercions.CoercionUtils.CoercionContext
- Enclosing class:
CoercionUtils
public static record CoercionUtils.CoercionContext(HiveTimestampPrecision timestampPrecision, HiveStorageFormat storageFormat)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCoercionContext(HiveTimestampPrecision timestampPrecision, HiveStorageFormat storageFormat) Creates an instance of aCoercionContextrecord 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.Returns the value of thestorageFormatrecord component.Returns the value of thetimestampPrecisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoercionContext
Creates an instance of aCoercionContextrecord class.- Parameters:
timestampPrecision- the value for thetimestampPrecisionrecord componentstorageFormat- the value for thestorageFormatrecord 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 withObjects::equals(Object,Object). -
timestampPrecision
Returns the value of thetimestampPrecisionrecord component.- Returns:
- the value of the
timestampPrecisionrecord component
-
storageFormat
Returns the value of thestorageFormatrecord component.- Returns:
- the value of the
storageFormatrecord component
-