ExtensionMethodsSlidingWindowTRecord Method (CollectionTRecord, Epoch, Int32)Naiad Help

[This is preliminary documentation and is subject to change.]

Computes a sliding window over the given windowSize number of Epochs for the input collection.

Namespace: Microsoft.Research.Naiad.Frameworks.DifferentialDataflow
Assembly: Microsoft.Research.Naiad.DifferentialDataflow (in Microsoft.Research.Naiad.DifferentialDataflow.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public static Collection<TRecord, Epoch> SlidingWindow<TRecord>(
	this Collection<TRecord, Epoch> input,
	int windowSize
)
where TRecord : Object, IEquatable<TRecord>

Parameters

input
Type: Microsoft.Research.Naiad.Frameworks.DifferentialDataflowCollectionTRecord, Epoch
The input collection
windowSize
Type: SystemInt32
Number of epochs in which each record should appear.

Type Parameters

TRecord
The type of the input records.

Return Value

Type: CollectionTRecord, Epoch
The collection that represents a sliding window over the input.

Usage Note

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

Reference