Package io.deephaven.chunk
Class ToLegacyByteChunkAdapter
java.lang.Object
io.deephaven.chunk.ToLegacyByteChunkAdapter
- All Implemented Interfaces:
ToLegacyChunkAdapter
-
Field Summary
Fields -
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 voiddoConvertIntoResettable(@NotNull ByteChunk<?> toConvert, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableByteChunk<?> dest) Converts a ByteChunk into a ResettableByteChunk.static voiddoConvertIntoWritable(@NotNull ByteChunk<?> toConvert, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableByteChunk<?> dest)
-
Field Details
-
INSTANCE
-
-
Method Details
-
convertIntoWritable
public void convertIntoWritable(@NotNull @NotNull Chunk<?> cChunk, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk<?> lChunk) Description copied from interface:ToLegacyChunkAdapterConvert 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.- Specified by:
convertIntoWritablein interfaceToLegacyChunkAdapter- Parameters:
cChunk- the chunk to convert into.lChunk- the chunk to be converted
-
doConvertIntoWritable
public static void doConvertIntoWritable(@NotNull @NotNull ByteChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableByteChunk<?> dest) -
doConvertIntoResettable
public static void doConvertIntoResettable(@NotNull @NotNull ByteChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableByteChunk<?> dest) Converts a ByteChunk into a ResettableByteChunk.- Parameters:
toConvert- the Core chunk to convert to a Legacy chunkdest- the destination Legacy chunk
-