Method Max
Max<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the maximum value.
public static TValue Max<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, TValue>The selector that selects a value from the input document.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The maximum of the selected values.
Type Parameters
TInputThe type of the input documents in the partition.
TValueThe type of the selected values.