Share via


QStreamable.Select<TSource, TResult> Method (IQWindowedStreamable<TSource>, Expression<Func<CepWindow<TSource>, TResult>>)

Projection method supporting aggregate computations over windows.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Select(Of TSource, TResult) ( _
    source As IQWindowedStreamable(Of TSource), _
    selector As Expression(Of Func(Of CepWindow(Of TSource), TResult)) _
) As IQStreamable(Of TResult)
'Usage
Dim source As IQWindowedStreamable(Of TSource)
Dim selector As Expression(Of Func(Of CepWindow(Of TSource), TResult))
Dim returnValue As IQStreamable(Of TResult)

returnValue = source.Select(selector)
public static IQStreamable<TResult> Select<TSource, TResult>(
    this IQWindowedStreamable<TSource> source,
    Expression<Func<CepWindow<TSource>, TResult>> selector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TResult>
static IQStreamable<TResult>^ Select(
    IQWindowedStreamable<TSource>^ source, 
    Expression<Func<CepWindow<TSource>^, TResult>^>^ selector
)
static member Select : 
        source:IQWindowedStreamable<'TSource> * 
        selector:Expression<Func<CepWindow<'TSource>, 'TResult>> -> IQStreamable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The source payload type.
  • TResult
    The result payload type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
The aggregate result stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQWindowedStreamable<TSource>. 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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).

See Also

Reference

QStreamable Class

Select Overload

Microsoft.ComplexEventProcessing.Linq Namespace