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.2.1.0 (0.2.1.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.LinqIQueryableT1
The input dataset - procFunc
- Type: System.Linq.ExpressionsExpressionFuncIEnumerableT1, T2
The function to apply to every sliding window - windowSize
- Type: SystemInt32
The size of the window
Type Parameters
- T1
- The type of the input records
- T2
- The type of the output records
Return Value
Type: IQueryableT2An 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 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