DryadLinqQueryable ApplyWithPartitionIndex T1, T2  Method DryadLINQ documentation
Computes a user-defined function on each partition of the input. The function takes a partition and its partition index as arguments.

Namespace: Microsoft.Research.DryadLinq
Assembly: Microsoft.Research.DryadLinq (in Microsoft.Research.DryadLinq.dll) Version: 0.1.2.0 (0.1.2.0)
Syntax

public static IQueryable<T2> ApplyWithPartitionIndex<T1, T2>(
	this IQueryable<T1> source,
	Expression<Func<IEnumerable<T1>, int, IEnumerable<T2>>> procFunc
)

Parameters

source
Type: System.Linq IQueryable T1 
The input dataset
procFunc
Type: System.Linq.Expressions Expression Func IEnumerable T1 , Int32, IEnumerable T2   
The function to apply to each partition
Type Parameters

T1
The type of the input records
T2
The type of the output records

Return Value

Type: IQueryable T2 
An IQueryable formed by concatenating the results of applying the function to each partition

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable T1 . 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