Class PercentileDiscAccumulator

java.lang.Object
dev.frostlake.functions.aggregate.PercentileDiscAccumulator
All Implemented Interfaces:
CoercedNumericArgumentAccumulator, AggregateFunction.Accumulator

public class PercentileDiscAccumulator extends Object implements AggregateFunction.Accumulator, CoercedNumericArgumentAccumulator
Accumulator for PercentileDisc, delegating to AggregateNumerics.percentileDisc(Iterable, double). It PICKS an input rather than computing one, so the value is handed back as it arrived and keeps its column's own scale — collapsing it to a double lost that, turning a NUMBER(10,2)'s 2.00 into 2.0. A VARCHAR or VARIANT key is the one exception: live converts it to a whole number, and the declaration says so (CoercedNumericArgumentAccumulator).