CepStream.SelectMany<TInput, TResult> Method (CepWindowStream<CepWindow<TInput>>, Expression<Func<CepWindow<TInput>, CepWindow<TInput>>>, Expression<Func<CepWindow<TInput>, TInput, TResult>>)

Supports order by operation against a windowed stream.

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

Syntax

public static CepOrderableStream<TResult> SelectMany<TInput, TResult>(
    this CepWindowStream<CepWindow<TInput>> source,
    Expression<Func<CepWindow<TInput>, CepWindow<TInput>>> bind,
    Expression<Func<CepWindow<TInput>, TInput, TResult>> selector
)

Type Parameters

  • TInput
    Type of the input event payload.
  • TResult
    Type of output event payload.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepOrderableStream<TResult>
A stream that can be ordered.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CepWindowStream<CepWindow<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).

Remarks

For example:

(from w in s.Snapshot()
from e in w
order by e.i
order by e.j descending
select e).Take(10);

The two "from" clauses are converted into SelectMany.

See Also

Reference

CepStream Class

SelectMany Overload

Microsoft.ComplexEventProcessing.Linq Namespace