Class RowKeyChunkUtils

java.lang.Object
io.deephaven.engine.rowset.impl.RowKeyChunkUtils

public class RowKeyChunkUtils extends Object
Utilities for working with chunks of row keys.
  • Constructor Details

    • RowKeyChunkUtils

      public RowKeyChunkUtils()
  • Method Details

    • convertToOrderedKeyRanges

      public static WritableLongChunk<OrderedRowKeyRanges> convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk)
      Generates a LongChunk<OrderedRowKeyRanges> from a LongChunk<OrderedRowKeys>.
      Parameters:
      chunk - the chunk to convert
      Returns:
      the generated chunk
    • convertToOrderedKeyRanges

      @VisibleForTesting public static WritableLongChunk<OrderedRowKeyRanges> convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk, long maxChunkSize)
    • convertToOrderedKeyRanges

      public static void convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk, WritableLongChunk<OrderedRowKeyRanges> dest)
      Fills OrderedRowKeyRanges into dest from the provided chunk and specified source range.
      Parameters:
      chunk - the chunk to convert
      dest - the chunk to fill with ranges
    • convertToOrderedKeyIndices

      public static LongChunk<OrderedRowKeys> convertToOrderedKeyIndices(LongChunk<OrderedRowKeyRanges> chunk)
      Generates a LongChunk<OrderedRowKeys> from LongChunk<OrderedRowKeyRanges>.
      Parameters:
      chunk - the chunk to convert
      Returns:
      the generated chunk
    • convertToOrderedKeyIndices

      public static LongChunk<OrderedRowKeys> convertToOrderedKeyIndices(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk)
      Generates a LongChunk<OrderedRowKeys> from LongChunk<OrderedRowKeyRanges>.
      Parameters:
      srcOffset - the offset into chunk to begin including in the generated chunk
      chunk - the chunk to convert
      Returns:
      the generated chunk
    • convertToOrderedKeyIndices

      public static void convertToOrderedKeyIndices(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk, WritableLongChunk<OrderedRowKeys> dest, int destOffset)
      Fill a LongChunk<OrderedRowKeys> from LongChunk<OrderedRowKeyRanges>.
      Parameters:
      srcOffset - the offset into chunk to begin including in the generated chunk
      chunk - the chunk to convert
      dest - the chunk to fill with indices