Record Class WindowClause.WindowVars

java.lang.Object
java.lang.Record
org.rumbledb.expressions.flowr.WindowClause.WindowVars
Record Components:
currentItem - item that starts / ends the window
position - position of the current item in the binding sequence
previousItem - item that precedes the current item in the binding sequence
nextItem - 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 Details

    • WindowVars

      public WindowVars(Name currentItem, Name position, Name previousItem, Name nextItem)
      Creates an instance of a WindowVars record class.
      Parameters:
      currentItem - the value for the currentItem record component
      position - the value for the position record component
      previousItem - the value for the previousItem record component
      nextItem - the value for the nextItem record component
  • Method Details

    • names

      public List<Name> names()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • currentItem

      public Name currentItem()
      Returns the value of the currentItem record component.
      Returns:
      the value of the currentItem record component
    • position

      public Name position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • previousItem

      public Name previousItem()
      Returns the value of the previousItem record component.
      Returns:
      the value of the previousItem record component
    • nextItem

      public Name nextItem()
      Returns the value of the nextItem record component.
      Returns:
      the value of the nextItem record component