[This is preliminary documentation and is subject to change.]
Consolidates representation so that each record occurs with at most one weight.
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<TRecord, TTime> Consolidate<TKey>( Expression<Func<TRecord, TKey>> keySelector )
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTRecord, TKey
Function that extracts a key from each record.
Type Parameters
- TKey
- The key type.
Return Value
Type: CollectionTRecord, TTimeA collection with the same elements, but in which all identical records are stored once with a canonical weight, and all records with the same key will be processed by the same worker.
See Also