StageTVertex, TTimeNewInputTRecord Method (StreamTRecord, TTime, ActionMessageTRecord, TTime, TVertex, ExpressionFuncTRecord, Int32)Naiad Help

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

Creates a new input that consumes records from the given stream, partitioned by the given partitioning function, and delivers them to a vertex through the given onReceive callback.

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>(
	Stream<TRecord, TTime> stream,
	Action<Message<TRecord, TTime>, TVertex> onReceive,
	Expression<Func<TRecord, int>> partitionedBy
)

Parameters

stream
Type: Microsoft.Research.NaiadStreamTRecord, TTime
The stream from which records will be consumed.
onReceive
Type: SystemActionMessageTRecord, TTime, TVertex
A callback that will be invoked on a message and vertex when that message is to be delivered to that vertex.
partitionedBy
Type: System.Linq.ExpressionsExpressionFuncTRecord, Int32
A partitioning expression, or null if the records need not be repartitioned.

Type Parameters

TRecord
Record type

Return Value

Type: StageInputTRecord, TTime
A handle to the input.
See Also

Reference