Class ChunkBoxer

java.lang.Object
io.deephaven.engine.table.impl.chunkboxer.ChunkBoxer

public class ChunkBoxer extends Object
Convert an arbitrary chunk to a chunk of boxed objects.
  • Constructor Details

    • ChunkBoxer

      public ChunkBoxer()
  • Method Details

    • boxedGet

      public static <BOXED_TYPE> BOXED_TYPE boxedGet(@NotNull @NotNull Chunk<? extends Values> values, int offset)
      Box the value at offset in values.

      Please use a ChunkBoxer when boxing multiple values in order to amortize the cost of implementation lookup and avoid virtual dispatch.

      Type Parameters:
      BOXED_TYPE - The type of the boxed value
      Parameters:
      values - The chunk containing the value to box
      offset - The offset of the value to box
      Returns:
      The boxed value
    • getBoxer

      public static ChunkBoxer.BoxerKernel getBoxer(ChunkType type, int capacity)