SelectMany(TInput, TResult) 方法 (CepWindowStream(CepWindow(TInput)), Expression(Func(CepWindow(TInput), CepWindow(TInput))), Expression(Func(CepWindow(TInput), TInput, TResult)))

支持通过操作针对窗口流进行排序。

命名空间:  Microsoft.ComplexEventProcessing.Linq
程序集:  Microsoft.ComplexEventProcessing(在 Microsoft.ComplexEventProcessing.dll 中)

语法

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
)

类型参数

  • TInput
    输入事件负载的类型。
  • TResult
    输出事件负载的类型。

参数

返回值

类型:Microsoft.ComplexEventProcessing.Linq. . :: . .CepOrderableStream< (Of < ( <'TResult> ) > ) >
可进行排序的流。

用法说明

在 Visual Basic 和 C# 中,您可以对 CepWindowStream< (Of < ( <'CepWindow< (Of < ( <'TInput> ) > ) >> ) > ) > 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=sql.105)https://msdn.microsoft.com/zh-cn/library/bb383977(v=sql.105)

注释

例如:

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

将两个“from”子句转换为 SelectMany。

请参阅

参考

CepStream 类

SelectMany 重载

Microsoft.ComplexEventProcessing.Linq 命名空间