Class ToLegacyShortChunkAdapter

java.lang.Object
io.deephaven.chunk.ToLegacyShortChunkAdapter
All Implemented Interfaces:
ToLegacyChunkAdapter

public class ToLegacyShortChunkAdapter extends Object implements ToLegacyChunkAdapter
  • Field Details

  • Method Details

    • convertIntoWritable

      public void convertIntoWritable(@NotNull @NotNull Chunk<?> cChunk, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk<?> lChunk)
      Description copied from interface: ToLegacyChunkAdapter
      Convert the input Core Chunk into a Legacy WritableChunk. This method guarantees that the two chunks wrap the same internals so that changes to the input Legacy chunk are reflected in the input Core chunk.
      Specified by:
      convertIntoWritable in interface ToLegacyChunkAdapter
      Parameters:
      cChunk - the chunk to convert into.
      lChunk - the chunk to be converted
    • doConvertIntoWritable

      public static void doConvertIntoWritable(@NotNull @NotNull ShortChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableShortChunk<?> dest)
    • doConvertIntoResettable

      public static void doConvertIntoResettable(@NotNull @NotNull ShortChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableShortChunk<?> dest)
      Converts a ShortChunk into a ResettableShortChunk.
      Parameters:
      toConvert - the Core chunk to convert to a Legacy chunk
      dest - the destination Legacy chunk