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 TypeMethodDescriptionvoidconvertIntoWritable(@NotNull Chunk<?> cChunk, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk<?> lChunk) Convert the input CoreChunkinto a LegacyWritableChunk.static ToLegacyChunkAdapterCreate an appropriate adapter instance for the specifiedChunkType.
-
Method Details
-
make
static ToLegacyChunkAdapter make(@NotNull @NotNull ChunkType chunkType, @NotNull @NotNull Class<?> dataType) Create an appropriate adapter instance for the specifiedChunkType.- Parameters:
chunkType- the chunk typedataType- the column data type- Returns:
- an
ToLegacyChunkAdapterto 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 CoreChunkinto a LegacyWritableChunk. 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 convertedcChunk- the chunk to convert into.
-