Package org.rumbledb.expressions.flowr
Record Class WindowClause.WindowVars
java.lang.Object
java.lang.Record
org.rumbledb.expressions.flowr.WindowClause.WindowVars
- Record Components:
currentItem- item that starts / ends the windowposition- position of the current item in the binding sequencepreviousItem- item that precedes the current item in the binding sequencenextItem- item that follows the current item in the binding sequence
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WindowClause
public static record WindowClause.WindowVars(Name currentItem, Name position, Name previousItem, Name nextItem)
extends Record
implements Serializable
Record used to keep track of variables binding of a window condition
All of these variables are optional (can be null)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWindowVars(Name currentItem, Name position, Name previousItem, Name nextItem) Creates an instance of aWindowVarsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentItemrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.names()nextItem()Returns the value of thenextItemrecord component.position()Returns the value of thepositionrecord component.Returns the value of thepreviousItemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WindowVars
Creates an instance of aWindowVarsrecord class.- Parameters:
currentItem- the value for thecurrentItemrecord componentposition- the value for thepositionrecord componentpreviousItem- the value for thepreviousItemrecord componentnextItem- the value for thenextItemrecord component
-
-
Method Details
-
names
-
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 withObjects::equals(Object,Object). -
currentItem
Returns the value of thecurrentItemrecord component.- Returns:
- the value of the
currentItemrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
previousItem
Returns the value of thepreviousItemrecord component.- Returns:
- the value of the
previousItemrecord component
-
nextItem
Returns the value of thenextItemrecord component.- Returns:
- the value of the
nextItemrecord component
-