[This is preliminary documentation and is subject to change.]
Constructs a stream from two inputs and a function to apply to collections on a time-by-time basis.
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> BinaryExpression<TInput1, TInput2, TOutput, TTime>( this Stream<TInput1, TTime> stream1, Stream<TInput2, TTime> stream2, Expression<Func<TInput1, int>> keyFunction1, Expression<Func<TInput2, int>> keyFunction2, Expression<Func<IEnumerable<TInput1>, IEnumerable<TInput2>, IEnumerable<TOutput>>> transformation, string name ) where TTime : Object, Time<TTime>
Parameters
- stream1
- Type: Microsoft.Research.NaiadStreamTInput1, TTime
first input stream - stream2
- Type: Microsoft.Research.NaiadStreamTInput2, TTime
second input stream - keyFunction1
- Type: System.Linq.ExpressionsExpressionFuncTInput1, Int32
first partitioning requirement - keyFunction2
- Type: System.Linq.ExpressionsExpressionFuncTInput2, Int32
second partitioning requirement - transformation
- Type: System.Linq.ExpressionsExpressionFuncIEnumerableTInput1, IEnumerableTInput2, IEnumerableTOutput
collection transformation - name
- Type: SystemString
descriptive name
Type Parameters
- TInput1
- First input type
- TInput2
- Second input type
- TOutput
- Output type
- TTime
- Time type
Return Value
Type: StreamTOutput, TTimea new stream representing independent application of transformation to each time in the input streams
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