CepStream.TumblingWindow<TPayload> 方法 (CepStream<TPayload>, TimeSpan, DateTime, WindowInputPolicy, HoppingWindowOutputPolicy)

 

將資料流轉換為視窗資料流,其中每個成員都是一個 CepWindow

命名空間:   Microsoft.ComplexEventProcessing.Linq
組件:  Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)

語法

public static CepWindowStream<CepWindow<TPayload>> TumblingWindow<TPayload>(
    this CepStream<TPayload> source,
    TimeSpan windowSize,
    DateTime alignment,
    WindowInputPolicy inputPolicy,
    HoppingWindowOutputPolicy outputPolicy
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static CepWindowStream<CepWindow<TPayload>^>^ TumblingWindow(
    CepStream<TPayload>^ source,
    TimeSpan windowSize,
    DateTime alignment,
    WindowInputPolicy^ inputPolicy,
    HoppingWindowOutputPolicy^ outputPolicy
)
static member TumblingWindow<'TPayload> : 
        source:CepStream<'TPayload> *
        windowSize:TimeSpan *
        alignment:DateTime *
        inputPolicy:WindowInputPolicy *
        outputPolicy:HoppingWindowOutputPolicy -> CepWindowStream<CepWindow<'TPayload>>
<ExtensionAttribute>
Public Shared Function TumblingWindow(Of TPayload) (
    source As CepStream(Of TPayload),
    windowSize As TimeSpan,
    alignment As Date,
    inputPolicy As WindowInputPolicy,
    outputPolicy As HoppingWindowOutputPolicy
) As CepWindowStream(Of CepWindow(Of TPayload))

參數

  • source
    要對其套用 TumblingWindow 作業的 CepStream
  • windowSize
    視窗的長度和躍點大小。
  • alignment
    對齊視窗開始時間的參考時間。
  • inputPolicy
    表示輸入視窗作業前如何變更事件。
  • outputPolicy
    表示變更視窗作業之輸出事件的方式。

傳回值

Type: Microsoft.ComplexEventProcessing.Linq.CepWindowStream<CepWindow<TPayload>>

可以對其套用彙總、排名或使用者定義作業的視窗資料流。

類型參數

  • TPayload
    輸入事件裝載的類型。

請參閱

TumblingWindow 超載
CepStream 類別
Microsoft.ComplexEventProcessing.Linq 命名空間

回到頁首