Interface ToLegacyChunkAdapter

All Known Implementing Classes:
ToLegacyByteChunkAdapter, ToLegacyCharChunkAdapter, ToLegacyDoubleChunkAdapter, ToLegacyFloatChunkAdapter, ToLegacyIntChunkAdapter, ToLegacyLongChunkAdapter, ToLegacyObjectChunkAdapter, ToLegacyShortChunkAdapter, ToLegacyStringSetChunkAdapter

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

    Modifier and Type
    Method
    Description
    void
    convertIntoWritable(@NotNull Chunk<?> cChunk, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk<?> lChunk)
    Convert the input Core Chunk into a Legacy WritableChunk.
    make(@NotNull ChunkType chunkType, @NotNull Class<?> dataType)
    Create an appropriate adapter instance for the specified ChunkType.
  • Method Details

    • make

      static ToLegacyChunkAdapter make(@NotNull @NotNull ChunkType chunkType, @NotNull @NotNull Class<?> dataType)
      Create an appropriate adapter instance for the specified ChunkType.
      Parameters:
      chunkType - the chunk type
      dataType - the column data type
      Returns:
      an ToLegacyChunkAdapter to convert Core chunks into Legacy chunks.
    • convertIntoWritable

      void convertIntoWritable(@NotNull @NotNull Chunk<?> cChunk, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk<?> lChunk)
      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.
      Parameters:
      lChunk - the chunk to be converted
      cChunk - the chunk to convert into.