Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class WindowFrame.BoundedFrame
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.WindowFrame.BoundedFrame
- Record Components:
n- the window width in rows; must be ≥ 1
- All Implemented Interfaces:
WindowFrame
- Enclosing interface:
WindowFrame
A trailing
n-row sliding window — OVER n ROWS — equivalent to
SQL's ROWS BETWEEN n-1 PRECEDING AND CURRENT ROW. The per-partition
buffer never exceeds n rows, so a bounded frame is materialisation-safe
over an unbounded input.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.darkcollective.relix.ast.WindowFrame
WindowFrame.BoundedFrame, WindowFrame.CumulativeFrame, WindowFrame.PartitionFrame -
Constructor Summary
Constructors -
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.intn()Returns the value of thenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BoundedFrame
public BoundedFrame(int n) Creates an instance of aBoundedFramerecord class.- Parameters:
n- the value for thenrecord 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 '=='. -
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-