Package io.trino.plugin.hive.coercions
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, boolean treatNaNAsNull)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCoercionContext(HiveTimestampPrecision timestampPrecision, boolean treatNaNAsNull) 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 thetimestampPrecisionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetreatNaNAsNullrecord component.
-
Constructor Details
-
CoercionContext
Creates an instance of aCoercionContextrecord class.- Parameters:
timestampPrecision- the value for thetimestampPrecisionrecord componenttreatNaNAsNull- the value for thetreatNaNAsNullrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
timestampPrecision
Returns the value of thetimestampPrecisionrecord component.- Returns:
- the value of the
timestampPrecisionrecord component
-
treatNaNAsNull
public boolean treatNaNAsNull()Returns the value of thetreatNaNAsNullrecord component.- Returns:
- the value of the
treatNaNAsNullrecord component
-