[This is preliminary documentation and is subject to change.]
Creates a new input for this stage, with the given partitioning requirement.
Namespace: Microsoft.Research.Naiad.Dataflow
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public StageInput<TRecord, TTime> NewInput<TRecord, TTime>( Stream<TRecord, TTime> stream, Expression<Func<TRecord, int>> partitioning ) where TTime : Object, Time<TTime>
Parameters
- stream
- Type: Microsoft.Research.NaiadStreamTRecord, TTime
The stream from which this input will receive records. - partitioning
- Type: System.Linq.ExpressionsExpressionFuncTRecord, Int32
Function that maps records to integers, implying the requirement that all records mapping to the same integer must be processed by the same Vertex.
Type Parameters
- TRecord
- The record type.
- TTime
- The time type.
Return Value
Type: StageInputTRecord, TTimeAn object that represents the stage input.
See Also