NavigationWindowFunction

abstract class NavigationWindowFunction : WindowFunction

This abstract class holds some common logic for navigation window function, i.e., LAG, LEAD TODO: When we support FIRST_VALUE, etc, we probably need to modify the process row function, since those function requires frame

Constructors

Link copied to clipboard
fun NavigationWindowFunction()

Functions

Link copied to clipboard
abstract fun processRow(state: EvaluatorState, arguments: List<ValueExpression>, currentPos: Int): ExprValue

open override fun processRow(state: EvaluatorState, arguments: List<ValueExpression>, windowVarDecl: PartiqlPhysical.VarDecl)

Process a row by outputting the result of the window function.

Link copied to clipboard
open override fun reset(partition: List<Array<ExprValue>>)

The reset function should be called before enter a new partition ( including the first one).

Properties

Link copied to clipboard
lateinit var currentPartition: List<Array<ExprValue>>
Link copied to clipboard
abstract val name: String