CollectionTRecord, TTimeAggregateTKey, TValue, TOutput Method Naiad Help

[This is preliminary documentation and is subject to change.]

Groups records using the supplied key selector, and applies the given aggregation function.

Namespace: Microsoft.Research.Naiad.Frameworks.DifferentialDataflow
Assembly: Microsoft.Research.Naiad.DifferentialDataflow (in Microsoft.Research.Naiad.DifferentialDataflow.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
Collection<TOutput, TTime> Aggregate<TKey, TValue, TOutput>(
	Expression<Func<TRecord, TKey>> keySelector,
	Expression<Func<TRecord, TValue>> valueSelector,
	Expression<Func<long, TValue, TValue, TValue>> axpy,
	Expression<Func<TValue, bool>> isZeroPredicate,
	Expression<Func<TKey, TValue, TOutput>> resultSelector
)
where TKey : Object, IEquatable<TKey>
where TValue : Object, IEquatable<TValue>
where TOutput : Object, IEquatable<TOutput>

Parameters

keySelector
Type: System.Linq.ExpressionsExpressionFuncTRecord, TKey
Function that extracts a key from each record.
valueSelector
Type: System.Linq.ExpressionsExpressionFuncTRecord, TValue
Function that transforms a record to the intermediate value that is stored for each record.
axpy
Type: System.Linq.ExpressionsExpressionFuncInt64, TValue, TValue, TValue
A function that multiplies the first argument by the second and adds the third (cf. SAXPY).
isZeroPredicate
Type: System.Linq.ExpressionsExpressionFuncTValue, Boolean
A predicate that returns true if and only if the given value is zero.
resultSelector
Type: System.Linq.ExpressionsExpressionFuncTKey, TValue, TOutput
Function that transforms a key and aggregate value to an output record.

Type Parameters

TKey
The key type.
TValue
The intermediate value type.
TOutput
The result type.

Return Value

Type: CollectionTOutput, TTime
The collection of output records.
See Also

Reference