CollectionTRecord, TTimeMinTValue, TComparable Method (ExpressionFuncTRecord, Int32, ExpressionFuncTRecord, TValue, ExpressionFuncInt32, TValue, TComparable, ExpressionFuncInt32, TValue, TRecord, Boolean)Naiad Help

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

Groups records using the supplied integer-valued key selector, and computes the minimum 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> Min<TValue, TComparable>(
	Expression<Func<TRecord, int>> keySelector,
	Expression<Func<TRecord, TValue>> valueSelector,
	Expression<Func<int, TValue, TComparable>> comparableSelector,
	Expression<Func<int, TValue, TRecord>> resultSelector,
	bool useDenseIntKeys
)
where TValue : Object, IEquatable<TValue>
where TComparable : Object, IEquatable<TComparable>, IComparable<TComparable>

Parameters

keySelector
Type: System.Linq.ExpressionsExpressionFuncTRecord, Int32
Function that extracts an integer-valued 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.
comparableSelector
Type: System.Linq.ExpressionsExpressionFuncInt32, TValue, TComparable
Function that extracts the portion of a key-value pair to be used in the comparison.
resultSelector
Type: System.Linq.ExpressionsExpressionFuncInt32, TValue, TRecord
Function that transforms a key and the minimum value to an output record.
useDenseIntKeys
Type: SystemBoolean
If true, use optimizations for dense-valued keys, otherwise treat keys as sparse.

Type Parameters

TValue
The intermediate value type.
TComparable
The type of values to be used for comparison.

Return Value

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

Reference