Class IntCompactKernel

java.lang.Object
io.deephaven.engine.table.impl.util.compact.IntCompactKernel
All Implemented Interfaces:
CompactKernel

public class IntCompactKernel extends Object implements CompactKernel
  • Method Details

    • compact

      public static void compact(WritableIntChunk<? 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 values
      retainValues - a chunk parallel to values, a value is retained in the output iff retainedValues is true
    • compact

      public void compact(WritableChunk<? extends Any> values, BooleanChunk<Any> retainValues)
      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 interface CompactKernel
      Parameters:
      values - a chunk of values, input and output
      retainValues - 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 interface CompactKernel
      Parameters:
      valueChunk - a chunk of values, input and output
      counts - an output chunk parallel to valueChunk with the number of times a value occurred
      countNull - 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 interface CompactKernel
      Parameters:
      valueChunk - a chunk of values, input and output
      counts - an output chunk parallel to valueChunk with the number of times a value occurred
      startPositions - the start of each run
      lengths - the length of each run, input and output
      countNull - if the compaction should count nulls or not
    • compactAndCount

      public static void compactAndCount(WritableIntChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts)
    • compactAndCount

      public static void compactAndCount(WritableIntChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, boolean countNull)
    • compactAndCount

      public static void compactAndCount(WritableIntChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, IntChunk<ChunkPositions> startPositions, WritableIntChunk<ChunkLengths> lengths, boolean countNull)
    • compactAndCount

      public static int compactAndCount(WritableIntChunk<? extends Values> valueChunk, WritableIntChunk<ChunkLengths> counts, int start, int length, boolean countNull)