Package io.trino.connector.system
Record Class SystemColumnHandle
java.lang.Object
java.lang.Record
io.trino.connector.system.SystemColumnHandle
- All Implemented Interfaces:
ColumnHandle
-
Constructor Summary
ConstructorsConstructorDescriptionSystemColumnHandle(String columnName) Creates an instance of aSystemColumnHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.longfinal inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.static Map<String, ColumnHandle> toSystemColumnHandles(ConnectorTableMetadata tableMetadata)
-
Constructor Details
-
SystemColumnHandle
Creates an instance of aSystemColumnHandlerecord class.- Parameters:
columnName- the value for thecolumnNamerecord component
-
-
Method Details
-
toString
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
toSystemColumnHandles
-
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
-