Forks one input dataset into three output datasets. A specified user-defined function is
applied to each input element to produce zero or one element for each 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 IMultiQueryable<R1, R2, R3> Fork<T, R1, R2, R3>( this IQueryable<T> source, Expression<Func<T, ForkTuple<R1, R2, R3>>> mapper )
Parameters
- source
- Type: System.LinqIQueryableT
The input dataset - mapper
- Type: System.Linq.ExpressionsExpressionFuncT, ForkTupleR1, R2, R3
The function applied to each record of the input
Type Parameters
- T
- The type of records of input dataset
- R1
- The type of records of the first output dataset
- R2
- The type of records of the second output dataset
- R3
- The type of records of the third output dataset
Return Value
Type: IMultiQueryableR1, R2, R3An IMultiQueryable for the three output datasets
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryableT. 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