CepStream.OrderBy<TPayload, TOrderKey> Method (CepOrderableStream<TPayload>, Expression<Func<TPayload, TOrderKey>>)
Orders the input stream by the rankSelector.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepOrderedStream<TPayload> OrderBy<TPayload, TOrderKey>(
this CepOrderableStream<TPayload> source,
Expression<Func<TPayload, TOrderKey>> rankSelector
)
public:
generic<typename TPayload, typename TOrderKey>
[ExtensionAttribute]
static CepOrderedStream<TPayload>^ OrderBy(
CepOrderableStream<TPayload>^ source,
Expression<Func<TPayload, TOrderKey>^>^ rankSelector
)
static member OrderBy<'TPayload, 'TOrderKey> :
source:CepOrderableStream<'TPayload> *
rankSelector:Expression<Func<'TPayload, 'TOrderKey>> -> CepOrderedStream<'TPayload>
<ExtensionAttribute>
Public Shared Function OrderBy(Of TPayload, TOrderKey) (
source As CepOrderableStream(Of TPayload),
rankSelector As Expression(Of Func(Of TPayload, TOrderKey))
) As CepOrderedStream(Of TPayload)
Parameters
source
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderableStream<TPayload>The stream source to order against.
rankSelector
Type: System.Linq.Expressions.Expression<Func<TPayload, TOrderKey>>The ranking expression whose value is used to compare events against each other.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TPayload>
An ordered stream that can furthur be ranked, for example, by using Take().
Type Parameters
- TPayload
The payload type of input events.
- TOrderKey
The type of the ordering key.
See Also
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top