IPgMovingFinalizingAggregate<TState, TDirect, TResult>
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Converts moving-window state into the aggregate’s SQL result.
public interface IPgMovingFinalizingAggregate<TState, TDirect, TResult>Type parameters:
TState
The moving state accepted by finalization.
TDirect
The direct arguments, or ValueTuple for none.
TResult
The same SQL result type as ordinary aggregation.
Methods
Section titled “Methods”MovingFinal(PgAggregateContext, TState, TDirect)
Section titled “MovingFinal(PgAggregateContext, TState, TDirect)”Produces the current window’s aggregate result.
public static abstract TResult MovingFinal(PgAggregateContext context, TState state, TDirect arguments)Parameters:
context — PgAggregateContext
The window invocation and state owner.
state — TState
The current moving state.
arguments — TDirect
The direct arguments.
Returns: TResult
The current result.