Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class WindowFunction.OffsetWindow
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.WindowFunction.OffsetWindow
- Record Components:
function- the offset function; never nullexpression- the value expression to read from the offset row; never nulloffset- the row offset (constant expression); empty defaults to 1defaultValue- the value emitted when the offset falls outside the partition; empty defaults toNULL
- All Implemented Interfaces:
WindowFunction
- Enclosing interface:
WindowFunction
public static record WindowFunction.OffsetWindow(OffsetFunction function, Operand expression, Optional<Operand> offset, Optional<Operand> defaultValue)
extends Record
implements WindowFunction
An offset function (slice 4).
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.darkcollective.relix.ast.WindowFunction
WindowFunction.AggregateWindow, WindowFunction.OffsetWindow, WindowFunction.RankingWindow -
Constructor Summary
ConstructorsConstructorDescriptionOffsetWindow(OffsetFunction function, Operand expression, Optional<Operand> offset, Optional<Operand> defaultValue) Creates an instance of aOffsetWindowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OffsetWindow
public OffsetWindow(OffsetFunction function, Operand expression, Optional<Operand> offset, Optional<Operand> defaultValue) Creates an instance of aOffsetWindowrecord class.- Parameters:
function- the value for thefunctionrecord componentexpression- the value for theexpressionrecord componentoffset- the value for theoffsetrecord componentdefaultValue- the value for thedefaultValuerecord 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 withObjects::equals(Object,Object). -
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-