QStreamable.HoppingWindow<TPayload> Method (IQStreamable<TPayload>, TimeSpan, TimeSpan)
Produces a windowed stream based on window definition. Hopping windows are characterized by a window duration and a hop size representing the window period.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function HoppingWindow(Of TPayload) ( _
source As IQStreamable(Of TPayload), _
windowSize As TimeSpan, _
hopSize As TimeSpan _
) As IQWindowedStreamable(Of TPayload)
'Usage
Dim source As IQStreamable(Of TPayload)
Dim windowSize As TimeSpan
Dim hopSize As TimeSpan
Dim returnValue As IQWindowedStreamable(Of TPayload)
returnValue = source.HoppingWindow(windowSize, _
hopSize)
public static IQWindowedStreamable<TPayload> HoppingWindow<TPayload>(
this IQStreamable<TPayload> source,
TimeSpan windowSize,
TimeSpan hopSize
)
[ExtensionAttribute]
public:
generic<typename TPayload>
static IQWindowedStreamable<TPayload>^ HoppingWindow(
IQStreamable<TPayload>^ source,
TimeSpan windowSize,
TimeSpan hopSize
)
static member HoppingWindow :
source:IQStreamable<'TPayload> *
windowSize:TimeSpan *
hopSize:TimeSpan -> IQWindowedStreamable<'TPayload>
JScript does not support generic types and methods.
Type Parameters
- TPayload
The payload type.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TPayload>
The source stream.
- windowSize
Type: System.TimeSpan
The size of window.
- hopSize
Type: System.TimeSpan
The hop size.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IQWindowedStreamable<TPayload>
The windowed stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).
Remarks
Window operators see events that are clipped to the boundaries of the window. Output events are points at the end edge of the window.