Interface ChunkAdapter

All Known Implementing Classes:
EnterpriseByteChunkAdapter, EnterpriseCharChunkAdapter, EnterpriseDoubleChunkAdapter, EnterpriseFloatChunkAdapter, EnterpriseIntChunkAdapter, EnterpriseLongChunkAdapter, EnterpriseObjectChunkAdapter, EnterpriseShortChunkAdapter

public interface ChunkAdapter
Implementors provide a method to adapt an Enterprise WritableChunk into a Community WritableChunk.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convertWritableInto(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.WritableChunk<?> dheChunk, ResettableWritableChunk<?> dhcChunk)
    Convert the input Enterprise WritableChunk into a Community WritableChunk.
    make(ChunkType chunkType)
    Create an appropriate adapter instance for the specified ChunkType
  • Method Details

    • make

      static ChunkAdapter make(@NotNull ChunkType chunkType)
      Create an appropriate adapter instance for the specified ChunkType
      Parameters:
      chunkType - the chunk type
      Returns:
      an ChunkAdapter to convert Enterprise chunks into Community chunks.
    • convertWritableInto

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