Record Class MemoryColumnHandle
java.lang.Object
java.lang.Record
io.trino.plugin.memory.MemoryColumnHandle
- All Implemented Interfaces:
ColumnHandle
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryColumnHandle(int columnIndex, Type type) Creates an instance of aMemoryColumnHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
MemoryColumnHandle
Creates an instance of aMemoryColumnHandlerecord class.- Parameters:
columnIndex- the value for thecolumnIndexrecord componenttype- the value for thetyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.- 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.
-
columnIndex
public int columnIndex()Returns the value of thecolumnIndexrecord component.- Returns:
- the value of the
columnIndexrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-