Class ApproxTopKAccumulator

java.lang.Object
dev.frostlake.functions.aggregate.ApproxTopKAccumulator
All Implemented Interfaces:
ConstantArgumentsAccumulator, AggregateFunction.Accumulator, MultiArgumentAccumulator

public class ApproxTopKAccumulator extends Object implements AggregateFunction.Accumulator, MultiArgumentAccumulator, ConstantArgumentsAccumulator
The accumulator of ApproxTopK: a TopKSummary sized by the call's third argument, answering the first k of its ranking. The limits come from the argument texts (so an empty group is still sized as written) and, when no texts were given, from the first row's constant values.