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)

public static CepWindowStream<CepWindow<TPayload>> HoppingWindow<TPayload>(
	this CepStream<TPayload> source,
	TimeSpan windowSize,
	TimeSpan hopSize,
	DateTime alignment,
	HoppingWindowOutputPolicy outputPolicy
)

Parameters

source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>

The CepStream to apply the HoppingWindow operation against.

windowSize
Type: System.TimeSpan

The length of the window.

hopSize
Type: System.TimeSpan

The hop size of the window.

alignment
Type: System.DateTime

The reference time to align window start times.

outputPolicy
Type: Microsoft.ComplexEventProcessing.Linq.HoppingWindowOutputPolicy

Indicates 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.

Return to top
Show: