Streamable.TopK Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- source
- IStreamable<TKey,TPayload>
- selector
- Expression<Func<TPayload,T>>
- k
- Int32
Returns
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
- source
- IStreamable<TKey,TPayload>
- selector
- Expression<Func<TPayload,T>>
- comparer
- Expression<Comparison<T>>
- k
- Int32
Returns
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
- source
- IStreamable<TKey,TPayload>
- k
- Int32
Returns
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
- source
- IStreamable<TKey,TPayload>
- comparer
- Expression<Comparison<TPayload>>
- k
- Int32