![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IMapTKey, TValueAggregateTResult Method (IAggregatorTResult) |
Applies the aggregation logic on all map entries and returns the result
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxTResult Aggregate<TResult>(
IAggregator<TResult> aggregator
)
Function Aggregate(Of TResult) (
aggregator As IAggregator(Of TResult)
) As TResult
generic<typename TResult>
TResult Aggregate(
IAggregator<TResult>^ aggregator
)
abstract Aggregate :
aggregator : IAggregator<'TResult> -> 'TResult
Parameters
- aggregator
- Type: Hazelcast.CoreIAggregatorTResult
Aggregator to aggregate the entries with.
This must be serializable via hazelcast serialization and have a counterpart on server side.
One of the builtin Aggregators or a custom IAggregatorTResult implementation can be used.
Type Parameters
- TResult
- type of the result
Return Value
Type:
TResultthe result of the given type
Remarks
Fast-Aggregations are the successor of the Map-Reduce Aggregators.
They are equivalent to the Map-Reduce Aggregators in most of the use-cases, but instead of running on the
Map-Reduce engine they run on the Query infrastructure. Their performance is tens to hundreds times better
due to the fact that they run in parallel for each partition and are highly optimized for speed and low
memory consumption
See Also