CepStream.Scan<TInputEvent, TInputPayload, TOutputPayload> 方法 (CepStream<TInputPayload>, CepStreamOperator<TInputEvent, TInputPayload, TOutputPayload>)

 

使用使用者定義的資料流運算子掃描輸入資料流。

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

語法

public static CepStream<TOutputPayload> Scan<TInputEvent, TInputPayload, TOutputPayload>(
    this CepStream<TInputPayload> source,
    CepStreamOperator<TInputEvent, TInputPayload, TOutputPayload> initialState
)
where TInputEvent : TypedEvent<TInputPayload>
public:
generic<typename TInputEvent, typename TInputPayload, typename TOutputPayload>
where TInputEvent : TypedEvent<TInputPayload>
[ExtensionAttribute]
static CepStream<TOutputPayload>^ Scan(
    CepStream<TInputPayload>^ source,
    CepStreamOperator<TInputEvent, TInputPayload, TOutputPayload>^ initialState
)
static member Scan<'TInputEvent, 'TInputPayload, 'TOutputPayload when 'TInputEvent : TypedEvent<'TInputPayload>> : 
        source:CepStream<'TInputPayload> *
        initialState:CepStreamOperator<'TInputEvent, 'TInputPayload, 'TOutputPayload> -> CepStream<'TOutputPayload>
<ExtensionAttribute>
Public Shared Function Scan(Of TInputEvent As TypedEvent(Of TInputPayload), TInputPayload, TOutputPayload) (
    source As CepStream(Of TInputPayload),
    initialState As CepStreamOperator(Of TInputEvent, TInputPayload, TOutputPayload)
) As CepStream(Of TOutputPayload)

參數

  • source
    要掃描的 CepStream
  • initialState
    使用者定義資料流運算子的初始狀態。

傳回值

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TOutputPayload>

使用者定義資料流運算子所產生的資料流。

類型參數

  • TInputEvent
    輸入事件的類型。
  • TInputPayload
    輸入事件裝載的類型。
  • TOutputPayload
    輸出事件裝載的類型。

請參閱

CepStream 類別
Microsoft.ComplexEventProcessing.Linq 命名空間

回到頁首