ReducingAggregationHandler

constructor(reducer: Reducer<Value, Return>, getReturnType: CalculateReturnType)

Parameters

reducer

This function actually does the reduction. Before it is called, nulls are filtered out. The type of the values is passed as KType to the reducer.

getReturnType

This function must be supplied to give the return type of reducer given some input type and whether the input is empty.