Class SsmUniqueRollupContext

java.lang.Object
io.deephaven.engine.table.impl.by.ssmcountdistinct.SsmUniqueRollupContext
All Implemented Interfaces:
IterativeChunkedAggregationOperator.BucketedContext, IterativeChunkedAggregationOperator.SingletonContext, SafeCloseable, AutoCloseable

Scratch context for the rollup "unique" operator. Per destination it gathers the unique constituent values to add to (or remove from) that destination's multiset into values, then compacts them (into distinct values + counts) so they can be inserted into or removed from the SSM in a single bulk call rather than one constituent at a time. A modify gathers its removals into values/counts and its additions into postValues/postCounts, then nets the two so values unchanged across the modify cancel out before touching the SSM (removedSize/addedSize carry the surviving lengths).