Interface ToCoreChunkAdapter

All Known Implementing Classes:
ToCoreByteChunkAdapter, ToCoreCharChunkAdapter, ToCoreDoubleChunkAdapter, ToCoreFloatChunkAdapter, ToCoreIntChunkAdapter, ToCoreLongChunkAdapter, ToCoreObjectChunkAdapter, ToCoreShortChunkAdapter

public interface ToCoreChunkAdapter
Implementors provide a method to adapt a Legacy Chunk into a Core WritableChunk.
  • Method Details

    • make

      static ToCoreChunkAdapter make(@NotNull ChunkType chunkType)
      Create an appropriate adapter instance for the specified ChunkType
      Parameters:
      chunkType - the chunk type
      Returns:
      an ToCoreChunkAdapter to convert Legacy chunks into Core chunks.
    • convertIntoWritable

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