CepStream.TumblingWindow<TPayload> Method (CepStream<TPayload>, TimeSpan, DateTime)
Transforms a stream to a window stream where each member is a CepWindow using the default output policy.
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,
DateTime alignment
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static CepWindowStream<CepWindow<TPayload>^>^ TumblingWindow(
CepStream<TPayload>^ source,
TimeSpan windowSize,
DateTime alignment
)
static member TumblingWindow<'TPayload> :
source:CepStream<'TPayload> *
windowSize:TimeSpan *
alignment:DateTime -> CepWindowStream<CepWindow<'TPayload>>
<ExtensionAttribute>
Public Shared Function TumblingWindow(Of TPayload) (
source As CepStream(Of TPayload),
windowSize As TimeSpan,
alignment As Date
) As CepWindowStream(Of CepWindow(Of TPayload))
Parameters
source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>The CepStream to apply the TumblingWindow operation against.
windowSize
Type: System.TimeSpanThe length and hop size of the window.
alignment
Type: System.DateTimeThe reference time to align window start times.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepWindowStream<CepWindow<TPayload>>
A window stream to which aggregates, ranking or user-defined operations can be applied.
Type Parameters
- TPayload
The type of the input event payload.
See Also
TumblingWindow Overload
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top