[This is preliminary documentation and is subject to change.]
Creates a new stage with two inputs and one output
Namespace: Microsoft.Research.Naiad.Dataflow.StandardVertices
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public static Stream<TOutput, TTime> NewBinaryStage<TInput1, TInput2, TOutput, TTime>( this Stream<TInput1, TTime> source, Stream<TInput2, TTime> other, Func<int, Stage<TTime>, BinaryVertex<TInput1, TInput2, TOutput, TTime>> factory, Expression<Func<TInput1, int>> input1PartitionBy, Expression<Func<TInput2, int>> input2PartitionBy, Expression<Func<TOutput, int>> outputPartitionBy, string name ) where TTime : Object, Time<TTime>
Parameters
- source
- Type: Microsoft.Research.NaiadStreamTInput1, TTime
First source of records - other
- Type: Microsoft.Research.NaiadStreamTInput2, TTime
Second source of records - factory
- Type: SystemFuncInt32, StageTTime, BinaryVertexTInput1, TInput2, TOutput, TTime
Vertex factory - input1PartitionBy
- Type: System.Linq.ExpressionsExpressionFuncTInput1, Int32
First partitioning requirement - input2PartitionBy
- Type: System.Linq.ExpressionsExpressionFuncTInput2, Int32
Second partitioning requirement - outputPartitionBy
- Type: System.Linq.ExpressionsExpressionFuncTOutput, Int32
Partitioning guarantee - name
- Type: SystemString
Descriptive name
Type Parameters
- TInput1
- First source type
- TInput2
- Second source type
- TOutput
- Result type
- TTime
- Time type
Return Value
Type: StreamTOutput, TTimeThe stage's output
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type StreamTInput1, TTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also