Class ApproxTopKStateAccumulator

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

The accumulator of ApproxTopKAccumulate: a TopKSummary sized by the call's second argument, serialised whole. The state's datatype comes from the aggregated expression's declared type; when nothing declares one (an expression the typer cannot follow) the first value's own class stands in, and a summary that saw nothing reports MISSING.