Compute the cross product of two datasets. The function procFunc is applied to each
pair of the cross product to form the output dataset.
Namespace: Microsoft.Research.DryadLinq
Assembly: Microsoft.Research.DryadLinq (in Microsoft.Research.DryadLinq.dll) Version: 0.2.1.0 (0.2.1.0)
Syntax
public static IQueryable<T3> CrossProduct<T1, T2, T3>( this IQueryable<T1> source1, IQueryable<T2> source2, Expression<Func<T1, T2, T3>> procFunc )
Parameters
- source1
- Type: System.LinqIQueryableT1
The first input dataset - source2
- Type: System.LinqIQueryableT2
The second input dataset - procFunc
- Type: System.Linq.ExpressionsExpressionFuncT1, T2, T3
The function to apply to each pair of the cross product
Type Parameters
- T1
- The type of the records of dataset source1
- T2
- The type of the records of dataset source2
- T3
- The type of the records of the result dataset
Return Value
Type: IQueryableT3The output dataset
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryableT1. 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