Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class WindowFrame.Bound
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.WindowFrame.Bound
- Record Components:
kind- which end, in the order the kinds are declared; never nulloffset- the distance, present exactly forPRECEDINGandFOLLOWING: a non-negative number, or a duration
- Enclosing interface:
WindowFrame
public static record WindowFrame.Bound(WindowFrame.Bound.Kind kind, Optional<Operand> offset)
extends Record
One end of a
WindowFrame.Between frame.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kinds of bound, from the partition's start to its end. -
Constructor Summary
ConstructorsConstructorDescriptionBound(WindowFrame.Bound.Kind kind, Optional<Operand> offset) Creates an instance of aBoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowFrame.Boundfinal booleanIndicates whether some other object is "equal to" this one.static WindowFrame.Boundfinal inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.static StringA literal offset as written: a number, orDURATION '…'.offset()Returns the value of theoffsetrecord component.static WindowFrame.BoundThe bound as SQL writes it, the offset printed byoffsetText.toString()Returns a string representation of this record class.static WindowFrame.Boundstatic WindowFrame.Bound
-
Constructor Details
-
Method Details
-
unboundedPreceding
-
preceding
-
currentRow
-
following
-
unboundedFollowing
-
render
The bound as SQL writes it, the offset printed byoffsetText. -
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. -
literal
A literal offset as written: a number, orDURATION '…'. -
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-