Share via


ISummableAggregate<TInput,TState,TResult> Interface

Definition

Interface used by aggregates that support the ability to "sum" two states.

public interface ISummableAggregate<TInput,TState,TResult> : Microsoft.StreamProcessing.Aggregates.IAggregate<TInput,TState,TResult>
type ISummableAggregate<'Input, 'State, 'Result> = interface
    interface IAggregate<'Input, 'State, 'Result>
Public Interface ISummableAggregate(Of TInput, TState, TResult)
Implements IAggregate(Of TInput, TState, TResult)

Type Parameters

TInput
TState
TResult
Implements

Methods

Accumulate()

Provides an expression that describes how to take the aggregate state and a new data object and compute a new aggregate state.

(Inherited from IAggregate<TInput,TState,TResult>)
ComputeResult()

Provides an expression that describes how to compute a final result from an aggregate state.

(Inherited from IAggregate<TInput,TState,TResult>)
Deaccumulate()

Provides an expression that describes how to take the aggregate state and a retracted data object and compute a new aggregate state.

(Inherited from IAggregate<TInput,TState,TResult>)
Difference()

Provides an expression that describes how to take two different aggregate states and subtract one from the other.

(Inherited from IAggregate<TInput,TState,TResult>)
InitialState()

Provides an expression that creates the initial state for the aggregate computation.

(Inherited from IAggregate<TInput,TState,TResult>)
Sum()

Provides an expression that describes how to take two different aggregate states and combine them.

Applies to