InterfaceIAggregateFunction
Provides custom (user-defined) implementation for aggregate function.
Definition
Namespace:Telerik.Reporting.Expressions
Assembly:Telerik.Reporting.dll
Syntax:
public interface IAggregateFunction
Methods
Accumulate(object[])
Accumulates the passed values in the aggregate.
Declaration
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
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
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
void Merge(IAggregateFunction aggregateFunction)
Parameters
aggregateFunction
Another instance of the same aggregate function that will be merged in the current instance.