IPgFinalizingAggregate<TState, TDirect, TResult>
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Converts ordinary aggregate state into a SQL result.
public interface IPgFinalizingAggregate<TState, TDirect, TResult>Type parameters:
TState
The state accepted by finalization, including SQL nullability.
TDirect
Ordered-set direct arguments, or ValueTuple for none.
TResult
The SQL result, including its nullability.
Methods
Section titled “Methods”Final(PgAggregateContext, TState, TDirect)
Section titled “Final(PgAggregateContext, TState, TDirect)”Produces the group’s result using any direct arguments.
public static abstract TResult Final(PgAggregateContext context, TState state, TDirect arguments)Parameters:
context — PgAggregateContext
The current aggregate invocation and state owner.
state — TState
The completed state.
arguments — TDirect
Arguments evaluated once for this group.
Returns: TResult
The aggregate result.