Interface
IAggregateFunction

Provides custom (user-defined) implementation for aggregate function.

Definition

Namespace:Telerik.Reporting.Expressions

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public interface IAggregateFunction

Methods

Accumulate(object[])

Accumulates the passed values in the aggregate.

Declaration

cs-api-definition
void Accumulate(object[] values)

Parameters

values

object[]

The values that will be accumulated on a single accumulation operation. The length of the values array equals to the number of parameters that the defined aggregate expects (most common one).

GetValue()

Gets the value that the aggregate instance keeps currently accumulated.

Declaration

cs-api-definition
object GetValue()

Returns

object

Returns the currently accumulated value.

Init()

Initializes the aggregate function instance. Implement to set the aggregate in its initial state ready to accumulate and merge values.

Declaration

cs-api-definition
void Init()

Merge(IAggregateFunction)

Merges another instance of the same aggregate function into the current instance. Implement this method to allow the reporting engine to merge the two resulting aggregates coming from two subsets of the aggregated data source rows.

Declaration

cs-api-definition
void Merge(IAggregateFunction aggregateFunction)

Parameters

aggregateFunction

IAggregateFunction

Another instance of the same aggregate function that will be merged in the current instance.