[This is preliminary documentation and is subject to change.]
Groups records using the supplied key selector, and counts the number of records in each group.
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<Pair<TKey, long>, TTime> Count<TKey>( Expression<Func<TRecord, TKey>> keySelector ) where TKey : Object, IEquatable<TKey>
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTRecord, TKey
Function that extracts a key from each record.
Type Parameters
- TKey
- The key type.
Return Value
Type: CollectionPairTKey, Int64, TTimeThe collection of pairs of keys and the respective counts for each group.
See Also