Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class WindowFunction.AggregateWindow
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.WindowFunction.AggregateWindow
- Record Components:
operator- the aggregate operator; never nullargument- the expression the operator reads; never null
- All Implemented Interfaces:
WindowFunction
- Enclosing interface:
WindowFunction
public static record WindowFunction.AggregateWindow(AggregateOperator operator, Operand argument)
extends Record
implements WindowFunction
A sliding / cumulative aggregate over an
Operand argument — the same
AggregateOperator + Operand pair used by γ. Only
SUM, AVG, COUNT, MIN, MAX are valid in
a window (validated by RelAlgebraValidator); COLLECT,
ARGMAX, ARGMIN are not.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.darkcollective.relix.ast.WindowFunction
WindowFunction.AggregateWindow, WindowFunction.OffsetWindow, WindowFunction.RankingWindow -
Constructor Summary
ConstructorsConstructorDescriptionAggregateWindow(AggregateOperator operator, Operand argument) Creates an instance of aAggregateWindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.operator()Returns the value of theoperatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 withObjects::equals(Object,Object). -
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
argument
Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-