CepStream.TumblingWindow<TPayload> Method (CepStream<TPayload>, TimeSpan)
Transforms a stream to a window stream where each member is a CepWindow using the default output policy. A tumbling window is a special kind of hopping window where window size and hop size are the same.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepWindowStream<CepWindow<TPayload>> TumblingWindow<TPayload>(
this CepStream<TPayload> source,
TimeSpan windowSize
)
Type Parameters
- TPayload
The type of the input event payload.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
The CepStream to apply the TumblingWindow operation against.
- windowSize
Type: System.TimeSpan
The length and hop size of the window.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepWindowStream<CepWindow<TPayload>>
A window stream to which aggregates, ranking or user-defined operations can be applied.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepStream<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).
Remarks
The default output policy for the result of the set-based operation on top of the window is to create a point event aligned to the window end time. For more information, see Using Event Windows.