[This is preliminary documentation and is subject to change.]
Groups records using the supplied key selector, and applies the given reduction 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> GroupBy<TKey, TOutput>( Expression<Func<TRecord, TKey>> keySelector, Func<TKey, IEnumerable<TRecord>, IEnumerable<TOutput>> reducer ) where TKey : Object, IEquatable<TKey> where TOutput : Object, IEquatable<TOutput>
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTRecord, TKey
Function that extracts a key from each record. - reducer
- Type: SystemFuncTKey, IEnumerableTRecord, IEnumerableTOutput
Function that transforms a sequence of input records to a sequence of output records.
Type Parameters
- TKey
- The key type.
- TOutput
- The result type.
Return Value
Type: CollectionTOutput, TTimeThe collection of output records for each group in the input collection.
Remarks
See Also