Share via


CepOrderableStream<T> Class

Represents a stream of events that can be ordered.

Inheritance Hierarchy

System.Object
  Microsoft.ComplexEventProcessing.Linq.CepOrderableStream<T>

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

Syntax

public class CepOrderableStream<T>

Type Parameters

  • T

The CepOrderableStream<T> type exposes the following members.

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method OrderBy<TPayload, TOrderKey> Orders the input stream by the rankSelector. (Defined by CepStream.)
Public Extension Method OrderByDescending<TPayload, TOrderKey> Orders the input stream by the rankSelector in descending order. (Defined by CepStream.)

Top

Remarks

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.

Thread Safety

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

See Also

Reference

Microsoft.ComplexEventProcessing.Linq Namespace