Class ArrayUniqueAggAccumulator

java.lang.Object
dev.frostlake.functions.aggregate.ArrayUniqueAggAccumulator
All Implemented Interfaces:
AggregateFunction.Accumulator

public class ArrayUniqueAggAccumulator extends Object implements AggregateFunction.Accumulator
Accumulator for ArrayUniqueAgg. Each accumulated value is one scalar element; NULLs are skipped and the remaining values are deduplicated (keyed by their JSON text) into a first-seen-ordered set. The result is the compact JSON text of the distinct-value array (never NULL — an empty set renders as []).