CepStream.HoppingWindow<TPayload> Method (CepStream<TPayload>, TimeSpan, TimeSpan, DateTime, HoppingWindowOutputPolicy)
Transforms a stream to a window stream where each member is a CepWindow.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepWindowStream<CepWindow<TPayload>> HoppingWindow<TPayload>(
this CepStream<TPayload> source,
TimeSpan windowSize,
TimeSpan hopSize,
DateTime alignment,
HoppingWindowOutputPolicy outputPolicy
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static CepWindowStream<CepWindow<TPayload>^>^ HoppingWindow(
CepStream<TPayload>^ source,
TimeSpan windowSize,
TimeSpan hopSize,
DateTime alignment,
HoppingWindowOutputPolicy^ outputPolicy
)
static member HoppingWindow<'TPayload> :
source:CepStream<'TPayload> *
windowSize:TimeSpan *
hopSize:TimeSpan *
alignment:DateTime *
outputPolicy:HoppingWindowOutputPolicy -> CepWindowStream<CepWindow<'TPayload>>
<ExtensionAttribute>
Public Shared Function HoppingWindow(Of TPayload) (
source As CepStream(Of TPayload),
windowSize As TimeSpan,
hopSize As TimeSpan,
alignment As Date,
outputPolicy As HoppingWindowOutputPolicy
) As CepWindowStream(Of CepWindow(Of TPayload))
Parameters
source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>The CepStream to apply the HoppingWindow operation against.
windowSize
Type: System.TimeSpanThe length of the window.
hopSize
Type: System.TimeSpanThe hop size of the window.
alignment
Type: System.DateTimeThe reference time to align window start times.
outputPolicy
Type: Microsoft.ComplexEventProcessing.Linq.HoppingWindowOutputPolicyIndicates how output events of the window operation are altered before they are introduced back into the stream.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepWindowStream<CepWindow<TPayload>>
A window stream to which aggregates, ranking, or user-defined operations can be applied to.
Type Parameters
- TPayload
The type of the input event payload.
See Also
HoppingWindow Overload
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top