Class FloatCompactKernel
java.lang.Object
io.deephaven.engine.table.impl.util.compact.FloatCompactKernel
- All Implemented Interfaces:
CompactKernel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compact
(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 void
compact
(WritableFloatChunk<? extends Any> values, BooleanChunk<Any> retainValues) Compact the values in values by retaining only the positions where retainValues is true.void
compactAndCount
(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.void
compactAndCount
(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 void
compactAndCount
(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts) static void
compactAndCount
(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) static int
compactAndCount
(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, int start, int length, boolean countNull) static void
compactAndCount
(WritableFloatChunk<? 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, wait
Methods inherited from interface io.deephaven.engine.table.impl.util.compact.CompactKernel
compactAndCount, compactAndCount
-
Method Details
-
compact
public static void compact(WritableFloatChunk<? 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:CompactKernel
Compacts values into the front of the chunk, retaining only values where the parallel retainValues chunk has a true value.- Specified by:
compact
in 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:CompactKernel
Sort valuesChunk, eliminate duplicates, and write the number of times a value occurred into the parallel slot within counts.- Specified by:
compactAndCount
in 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:CompactKernel
For 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:
compactAndCount
in 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(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts) -
compactAndCount
public static void compactAndCount(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull) -
compactAndCount
public static void compactAndCount(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull) -
compactAndCount
public static int compactAndCount(WritableFloatChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, int start, int length, boolean countNull)
-