Class DoubleCompactKernel
java.lang.Object
io.deephaven.engine.table.impl.util.compact.DoubleCompactKernel
- All Implemented Interfaces:
CompactKernel
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompact(WritableChunk<? extends Any> values, BooleanChunk<Any> retainValues) Compacts values into the front of the chunk, retaining only values where the parallel retainValues chunk has a true value.static voidcompact(WritableDoubleChunk<? extends Any> values, BooleanChunk<Any> retainValues) Compact the values in values by retaining only the positions where retainValues is true.voidcompactAndCount(WritableChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) Sort valuesChunk, eliminate duplicates, and write the number of times a value occurred into the parallel slot within counts.voidcompactAndCount(WritableChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull) For each run in valuesChunk, sort it, eliminate duplicates, and write the number of times a value occurred into the parallel slot within counts.static voidcompactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts) static voidcompactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) static intcompactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, int start, int length, boolean countNull) static voidcompactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.util.compact.CompactKernel
compactAndCount, compactAndCount
-
Method Details
-
compact
public static void compact(WritableDoubleChunk<? extends Any> values, BooleanChunk<Any> retainValues) Compact the values in values by retaining only the positions where retainValues is true.- Parameters:
values- the input and output chunk of valuesretainValues- a chunk parallel to values, a value is retained in the output iff retainedValues is true
-
compact
Description copied from interface:CompactKernelCompacts values into the front of the chunk, retaining only values where the parallel retainValues chunk has a true value.- Specified by:
compactin interfaceCompactKernel- Parameters:
values- a chunk of values, input and outputretainValues- the values to retain
-
compactAndCount
public void compactAndCount(WritableChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) Description copied from interface:CompactKernelSort valuesChunk, eliminate duplicates, and write the number of times a value occurred into the parallel slot within counts.- Specified by:
compactAndCountin interfaceCompactKernel- Parameters:
valueChunk- a chunk of values, input and outputcounts- an output chunk parallel to valueChunk with the number of times a value occurredcountNull- if the compaction should count nulls or not
-
compactAndCount
public void compactAndCount(WritableChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull) Description copied from interface:CompactKernelFor each run in valuesChunk, sort it, eliminate duplicates, and write the number of times a value occurred into the parallel slot within counts.- Specified by:
compactAndCountin interfaceCompactKernel- Parameters:
valueChunk- a chunk of values, input and outputcounts- an output chunk parallel to valueChunk with the number of times a value occurredstartPositions- the start of each runlengths- the length of each run, input and outputcountNull- if the compaction should count nulls or not
-
compactAndCount
public static void compactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts) -
compactAndCount
public static void compactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) -
compactAndCount
public static void compactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull) -
compactAndCount
public static int compactAndCount(WritableDoubleChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, int start, int length, boolean countNull)
-