Class SsmUniqueRollupContext
java.lang.Object
io.deephaven.engine.table.impl.by.ssmcountdistinct.SsmUniqueRollupContext
- All Implemented Interfaces:
IterativeChunkedAggregationOperator.BucketedContext,IterativeChunkedAggregationOperator.SingletonContext,SafeCloseable,AutoCloseable
public class SsmUniqueRollupContext
extends Object
implements IterativeChunkedAggregationOperator.BucketedContext, IterativeChunkedAggregationOperator.SingletonContext
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).-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MutableIntfinal WritableIntChunk<ChunkLengths> final WritableIntChunk<ChunkLengths> final WritableChunk<Values> final MutableIntfinal WritableChunk<Values> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
removeContext
-
values
-
counts
-
postValues
-
postCounts
-
removedSize
-
addedSize
-
-
Constructor Details
-
SsmUniqueRollupContext
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable
-