Method BottomN
BottomN<TInput, TResult>(ISetWindowFieldsPartition<TInput>, SortDefinition<TInput>, Func<TInput, TResult>, int, SetWindowFieldsWindow)
Returns the bottom n results.
public static IEnumerable<TResult> BottomN<TInput, TResult>(this ISetWindowFieldsPartition<TInput> partition, SortDefinition<TInput> sortBy, Func<TInput, TResult> selector, int n, 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.
nintThe number of results to return.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- IEnumerable<TResult>
The bottom n results.
Type Parameters
TInputThe type of the input documents in the partition.
TResultThe result type.