CepStream.Select<TInput, TResult> Method (CepOrderedStream<TInput>, Expression<Func<TInput, TResult>>)
Given an ordered stream, this method produces an ordered stream that can be used for ranking.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepOrderedStream<TResult> Select<TInput, TResult>(
this CepOrderedStream<TInput> source,
Expression<Func<TInput, TResult>> selector
)
Type Parameters
- TInput
Payload type of the input events.
- TResult
Payload type of result events.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TInput>
Input stream.
- selector
Type: System.Linq.Expressions.Expression<Func<TInput, TResult>>
Mapping to produce the result event type.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TResult>
An ordered stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepOrderedStream<TInput>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).