Share via


QStreamable.GroupBy<TPayload, TKey> Method (IQStreamable<TPayload>, Expression<Func<TPayload, TKey>>)

Partition operator.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GroupBy(Of TPayload, TKey) ( _
    source As IQStreamable(Of TPayload), _
    keySelector As Expression(Of Func(Of TPayload, TKey)) _
) As IQPartitionedStreamable(Of TKey, TPayload)
'Usage
Dim source As IQStreamable(Of TPayload)
Dim keySelector As Expression(Of Func(Of TPayload, TKey))
Dim returnValue As IQPartitionedStreamable(Of TKey, TPayload)

returnValue = source.GroupBy(keySelector)
public static IQPartitionedStreamable<TKey, TPayload> GroupBy<TPayload, TKey>(
    this IQStreamable<TPayload> source,
    Expression<Func<TPayload, TKey>> keySelector
)
[ExtensionAttribute]
public:
generic<typename TPayload, typename TKey>
static IQPartitionedStreamable<TKey, TPayload>^ GroupBy(
    IQStreamable<TPayload>^ source, 
    Expression<Func<TPayload, TKey>^>^ keySelector
)
static member GroupBy : 
        source:IQStreamable<'TPayload> * 
        keySelector:Expression<Func<'TPayload, 'TKey>> -> IQPartitionedStreamable<'TKey, 'TPayload> 
JScript does not support generic types and methods.

Type Parameters

  • TPayload
    The input payload type.
  • TKey
    The type of partition key.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQPartitionedStreamable<TKey, TPayload>
The partitioned stream.

Usage Note

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

GroupBy Overload

Microsoft.ComplexEventProcessing.Linq Namespace