Record Class InformationSchemaColumnHandle
java.lang.Object
java.lang.Record
io.trino.connector.informationschema.InformationSchemaColumnHandle
- All Implemented Interfaces:
ColumnHandle
public record InformationSchemaColumnHandle(String columnName)
extends Record
implements ColumnHandle
-
Constructor Summary
ConstructorsConstructorDescriptionInformationSchemaColumnHandle(String columnName) Creates an instance of aInformationSchemaColumnHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InformationSchemaColumnHandle
Creates an instance of aInformationSchemaColumnHandlerecord class.- Parameters:
columnName- the value for thecolumnNamerecord component
-
-
Method Details
-
toString
-
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.- Specified by:
hashCodein interfaceColumnHandle- Specified by:
hashCodein classRecord- Returns:
- a hash code value for this object
-
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).- Specified by:
equalsin interfaceColumnHandle- Specified by:
equalsin classRecord- Parameters:
o- the object with which to compare- Returns:
trueif this object is the same as theoargument;falseotherwise.
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-