Export (0) Print
Expand All

CepOrderableStream<T> Class

Represents a stream of events that can be ordered.


Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

public class CepOrderableStream<T>

Type Parameters


The CepOrderableStream<T> type exposes the following members.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Public Extension MethodOrderBy<TPayload, TOrderKey>Orders the input stream by the rankSelector. (Defined by CepStream.)
Public Extension MethodOrderByDescending<TPayload, TOrderKey>Orders the input stream by the rankSelector in descending order. (Defined by CepStream.)

CepOrderableStream helps you write ranking expressions. A CepOrderableStream is produced when a SelectMany is applied to a window stream as shown in the following example.

(from w in s.Window()

from e in w

order by e.i

select e).Take(10)

An orderable stream facilitates the specification of an "order by" clause. After at least one "order by" clause is applied to an orderable stream, an ordered stream is produced.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft