[This is preliminary documentation and is subject to change.]
Groups records using the supplied key selector, and computes the maximum value 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<TRecord, TTime> Max<TKey, TComparable>( Expression<Func<TRecord, TKey>> keySelector, Expression<Func<TRecord, TComparable>> comparableSelector ) where TKey : Object, IEquatable<TKey> where TComparable : Object, IComparable<TComparable>
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTRecord, TKey
Function that extracts a key from each record. - comparableSelector
- Type: System.Linq.ExpressionsExpressionFuncTRecord, TComparable
Function that extracts the portion of a record to be used in the comparison.
Type Parameters
- TKey
- The key type.
- TComparable
- The type of values to be used for comparison.
Return Value
Type: CollectionTRecord, TTimeThe collection of maximum-valued records in each group.
See Also