Package io.trino.operator.table
Record Class SequenceFunction.SequenceFunctionHandle
java.lang.Object
java.lang.Record
io.trino.operator.table.SequenceFunction.SequenceFunctionHandle
- All Implemented Interfaces:
ConnectorTableFunctionHandle
- Enclosing class:
SequenceFunction
public static record SequenceFunction.SequenceFunctionHandle(long start, long stop, long step)
extends Record
implements ConnectorTableFunctionHandle
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceFunctionHandle(long start, long stop, long step) Creates an instance of aSequenceFunctionHandlerecord 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.longstart()Returns the value of thestartrecord component.longstep()Returns the value of thesteprecord component.longstop()Returns the value of thestoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SequenceFunctionHandle
public SequenceFunctionHandle(long start, long stop, long step) Creates an instance of aSequenceFunctionHandlerecord class.- Parameters:
start- the value for thestartrecord componentstop- the value for thestoprecord componentstep- the value for thesteprecord 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. All components in this record class are compared with '=='. -
start
public long start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
stop
public long stop()Returns the value of thestoprecord component.- Returns:
- the value of the
stoprecord component
-
step
public long step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-