Method Top
Top<TInput, TResult>(ISetWindowFieldsPartition<TInput>, SortDefinition<TInput>, Func<TInput, TResult>, SetWindowFieldsWindow)
Returns the top result.
public static TResult Top<TInput, TResult>(this ISetWindowFieldsPartition<TInput> partition, SortDefinition<TInput> sortBy, Func<TInput, TResult> selector, SetWindowFieldsWindow window = null)
Parameters
partitionISetWindowFieldsPartition<TInput>The partition.
sortBySortDefinition<TInput>The sort order.
selectorFunc<TInput, TResult>The selector that selects a value from the input document.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- TResult
The top result.
Type Parameters
TInputThe type of the input documents in the partition.
TResultThe result type.