io.deephaven.engine.table.impl.by.ssmcountdistinct.SsmDistinctRollupContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-table Show documentation
Show all versions of deephaven-engine-table Show documentation
Engine Table: Implementation and closely-coupled utilities
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.engine.table.impl.by.ssmcountdistinct;
import io.deephaven.chunk.attributes.ChunkLengths;
import io.deephaven.chunk.attributes.Values;
import io.deephaven.engine.table.impl.by.IterativeChunkedAggregationOperator;
import io.deephaven.chunk.ChunkType;
import io.deephaven.chunk.sized.SizedChunk;
import io.deephaven.chunk.sized.SizedIntChunk;
import io.deephaven.engine.table.impl.ssms.SegmentedSortedMultiSet;
public class SsmDistinctRollupContext implements IterativeChunkedAggregationOperator.SingletonContext {
public final SegmentedSortedMultiSet.RemoveContext removeContext =
SegmentedSortedMultiSet.makeRemoveContext(SsmDistinctContext.NODE_SIZE);
public final SizedChunk valueCopy;
public final SizedIntChunk counts;
public SsmDistinctRollupContext(ChunkType chunkType) {
valueCopy = new SizedChunk<>(chunkType);
counts = new SizedIntChunk<>();
}
@Override
public void close() {
valueCopy.close();
counts.close();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy