Record Class MemoryTableHandle
java.lang.Object
java.lang.Record
io.trino.plugin.memory.MemoryTableHandle
- All Implemented Interfaces:
ConnectorTableHandle
public record MemoryTableHandle(long id, OptionalLong limit, OptionalDouble sampleRatio)
extends Record
implements ConnectorTableHandle
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryTableHandle(long id, OptionalLong limit, OptionalDouble sampleRatio) Creates an instance of aMemoryTableHandlerecord 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.longid()Returns the value of theidrecord component.limit()Returns the value of thelimitrecord component.Returns the value of thesampleRatiorecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MemoryTableHandle
Creates an instance of aMemoryTableHandlerecord class.- Parameters:
id- the value for theidrecord componentlimit- the value for thelimitrecord componentsampleRatio- the value for thesampleRatiorecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
sampleRatio
Returns the value of thesampleRatiorecord component.- Returns:
- the value of the
sampleRatiorecord component
-