Window<TKey,TSource>.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<TOrderValue>(Expression<Func<TSource,TOrderValue>>, Int32) |
Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector. |
TopK<TOrderValue>(Expression<Func<TSource,TOrderValue>>, IComparerExpression<TOrderValue>, Int32) |
Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector with the provided ordering comparer. |
TopK<TOrderValue>(Expression<Func<TSource,TOrderValue>>, Int32)
Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector.
public Microsoft.StreamProcessing.Aggregates.IAggregate<TSource,Microsoft.StreamProcessing.Internal.Collections.SortedMultiSet<TSource>,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TSource>>> TopK<TOrderValue> (System.Linq.Expressions.Expression<Func<TSource,TOrderValue>> orderer, int k);
member this.TopK : System.Linq.Expressions.Expression<Func<'Source, 'OrderValue>> * int -> Microsoft.StreamProcessing.Aggregates.IAggregate<'Source, Microsoft.StreamProcessing.Internal.Collections.SortedMultiSet<'Source>, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Source>>>
Public Function TopK(Of TOrderValue) (orderer As Expression(Of Func(Of TSource, TOrderValue)), k As Integer) As IAggregate(Of TSource, SortedMultiSet(Of TSource), List(Of RankedEvent(Of TSource)))
Type Parameters
- TOrderValue
Parameters
- orderer
- Expression<Func<TSource,TOrderValue>>
- k
- Int32
Returns
Applies to
TopK<TOrderValue>(Expression<Func<TSource,TOrderValue>>, IComparerExpression<TOrderValue>, Int32)
Computes a time-sensitive top-k aggregate using "snapshot windows" (SI terminology) based on a key selector with the provided ordering comparer.
public Microsoft.StreamProcessing.Aggregates.IAggregate<TSource,Microsoft.StreamProcessing.Internal.Collections.SortedMultiSet<TSource>,System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<TSource>>> TopK<TOrderValue> (System.Linq.Expressions.Expression<Func<TSource,TOrderValue>> orderer, Microsoft.StreamProcessing.IComparerExpression<TOrderValue> comparer, int k);
member this.TopK : System.Linq.Expressions.Expression<Func<'Source, 'OrderValue>> * Microsoft.StreamProcessing.IComparerExpression<'OrderValue> * int -> Microsoft.StreamProcessing.Aggregates.IAggregate<'Source, Microsoft.StreamProcessing.Internal.Collections.SortedMultiSet<'Source>, System.Collections.Generic.List<Microsoft.StreamProcessing.RankedEvent<'Source>>>
Public Function TopK(Of TOrderValue) (orderer As Expression(Of Func(Of TSource, TOrderValue)), comparer As IComparerExpression(Of TOrderValue), k As Integer) As IAggregate(Of TSource, SortedMultiSet(Of TSource), List(Of RankedEvent(Of TSource)))
Type Parameters
- TOrderValue
Parameters
- orderer
- Expression<Func<TSource,TOrderValue>>
- comparer
- IComparerExpression<TOrderValue>
- k
- Int32