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 Summary
Modifier and TypeMethodDescriptionvoidconvertIntoWritable(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.Chunk<?> lChunk, ResettableWritableChunk<?> cChunk) Convert the input LegacyChunkinto a CoreWritableChunk.static ToCoreChunkAdapterCreate an appropriate adapter instance for the specifiedChunkType
-
Method Details
-
make
Create an appropriate adapter instance for the specifiedChunkType- Parameters:
chunkType- the chunk type- Returns:
- an
ToCoreChunkAdapterto 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 LegacyChunkinto a CoreWritableChunk. 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 convertedcChunk- the chunk to convert into.
-