Streamable.TopK Method

Definition

Overloads

TopK<TKey,TPayload,T>(IStreamable<TKey,TPayload>, Expression<Func<TPayload,T>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

TopK<TKey,TPayload,T>(IStreamable<TKey,TPayload>, Expression<Func<TPayload,T>>, Expression<Comparison<T>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector with the provided ordering comparer.

TopK<TKey,TPayload>(IStreamable<TKey,TPayload>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

TopK<TKey,TPayload>(IStreamable<TKey,TPayload>, Expression<Comparison<TPayload>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

TopK<TKey,TPayload,T>(IStreamable<TKey,TPayload>, Expression<Func<TPayload,T>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

public static Microsoft.StreamProcessing.IStreamable<TKey,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TPayload>>> TopK<TKey,TPayload,T> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, System.Linq.Expressions.Expression<Func<TPayload,T>> selector, int k);
static member TopK : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * System.Linq.Expressions.Expression<Func<'Payload, 'T>> * int -> Microsoft.StreamProcessing.IStreamable<'Key, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Payload>>>
<Extension()>
Public Function TopK(Of TKey, TPayload, T) (source As IStreamable(Of TKey, TPayload), selector As Expression(Of Func(Of TPayload, T)), k As Integer) As IStreamable(Of TKey, List(Of RankedEvent(Of TPayload)))

Type Parameters

TKey
TPayload
T

Parameters

selector
Expression<Func<TPayload,T>>
k
Int32

Returns

IStreamable<TKey,List<Microsoft.StreamProcessing.RankedEvent<TPayload>>>

Applies to

TopK<TKey,TPayload,T>(IStreamable<TKey,TPayload>, Expression<Func<TPayload,T>>, Expression<Comparison<T>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector with the provided ordering comparer.

public static Microsoft.StreamProcessing.IStreamable<TKey,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TPayload>>> TopK<TKey,TPayload,T> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, System.Linq.Expressions.Expression<Func<TPayload,T>> selector, System.Linq.Expressions.Expression<Comparison<T>> comparer, int k);
static member TopK : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * System.Linq.Expressions.Expression<Func<'Payload, 'T>> * System.Linq.Expressions.Expression<Comparison<'T>> * int -> Microsoft.StreamProcessing.IStreamable<'Key, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Payload>>>
<Extension()>
Public Function TopK(Of TKey, TPayload, T) (source As IStreamable(Of TKey, TPayload), selector As Expression(Of Func(Of TPayload, T)), comparer As Expression(Of Comparison(Of T)), k As Integer) As IStreamable(Of TKey, List(Of RankedEvent(Of TPayload)))

Type Parameters

TKey
TPayload
T

Parameters

selector
Expression<Func<TPayload,T>>
comparer
Expression<Comparison<T>>
k
Int32

Returns

IStreamable<TKey,List<Microsoft.StreamProcessing.RankedEvent<TPayload>>>

Applies to

TopK<TKey,TPayload>(IStreamable<TKey,TPayload>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

public static Microsoft.StreamProcessing.IStreamable<TKey,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TPayload>>> TopK<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, int k);
static member TopK : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * int -> Microsoft.StreamProcessing.IStreamable<'Key, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Payload>>>
<Extension()>
Public Function TopK(Of TKey, TPayload) (source As IStreamable(Of TKey, TPayload), k As Integer) As IStreamable(Of TKey, List(Of RankedEvent(Of TPayload)))

Type Parameters

TKey
TPayload

Parameters

k
Int32

Returns

IStreamable<TKey,List<Microsoft.StreamProcessing.RankedEvent<TPayload>>>

Applies to

TopK<TKey,TPayload>(IStreamable<TKey,TPayload>, Expression<Comparison<TPayload>>, Int32)

Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.

public static Microsoft.StreamProcessing.IStreamable<TKey,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TPayload>>> TopK<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, System.Linq.Expressions.Expression<Comparison<TPayload>> comparer, int k);
static member TopK : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * System.Linq.Expressions.Expression<Comparison<'Payload>> * int -> Microsoft.StreamProcessing.IStreamable<'Key, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Payload>>>
<Extension()>
Public Function TopK(Of TKey, TPayload) (source As IStreamable(Of TKey, TPayload), comparer As Expression(Of Comparison(Of TPayload)), k As Integer) As IStreamable(Of TKey, List(Of RankedEvent(Of TPayload)))

Type Parameters

TKey
TPayload

Parameters

comparer
Expression<Comparison<TPayload>>
k
Int32

Returns

IStreamable<TKey,List<Microsoft.StreamProcessing.RankedEvent<TPayload>>>

Applies to