DryadLinqQueryable SlidingWindow T1, T2  Method DryadLINQ documentation
Apply a function on every sliding window on the input sequence of records.

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> SlidingWindow<T1, T2>(
	this IQueryable<T1> source,
	Expression<Func<IEnumerable<T1>, T2>> procFunc,
	int windowSize
)

Parameters

source
Type: System.Linq IQueryable T1 
The input dataset
procFunc
Type: System.Linq.Expressions Expression Func IEnumerable T1 , T2  
The function to apply to every sliding window
windowSize
Type: System Int32
The size of the window
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 the results for each sliding window

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