CepStream.SelectMany<TInput, TGroupingKey, TBind, TResult> Method (CepGroupingStreams<TInput, TGroupingKey>, Expression<Func<CepStream<TInput>, CepStream<TBind>>>, Expression<Func<IKey<TGroupingKey>, TBind, TResult>>)
Supports adding query logic inside a Group and Apply.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepStream<TResult> SelectMany<TInput, TGroupingKey, TBind, TResult>(
this CepGroupingStreams<TInput, TGroupingKey> source,
Expression<Func<CepStream<TInput>, CepStream<TBind>>> bind,
Expression<Func<IKey<TGroupingKey>, TBind, TResult>> selector
)
Type Parameters
- TInput
Payload type of the input events .
- TGroupingKey
Payload type of the grouping key.
- TBind
Payload type of the bound events.
- TResult
The type of the output stream event payload.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.CepGroupingStreams<TInput, TGroupingKey>
Stream source.
- bind
Type: System.Linq.Expressions.Expression<Func<CepStream<TInput>, CepStream<TBind>>>
Bind information that binds the second stream to the first stream.
- selector
Type: System.Linq.Expressions.Expression<Func<IKey<TGroupingKey>, TBind, TResult>>
Mapping expression that defines a projection on the output.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TResult>
A stream that can be used to further apply logic in the Group and Apply.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepGroupingStreams<TInput, TGroupingKey>. 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 more information, see Group and Apply.
Examples
from e1 in inputStream
group e1 by e.i into gs
from e2 in gs
...