Package io.deephaven.chunk
Class ToLegacyShortChunkAdapter
java.lang.Object
io.deephaven.chunk.ToLegacyShortChunkAdapter
- 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 ShortChunk<?> toConvert, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableShortChunk<?> dest) Converts a ShortChunk into a ResettableShortChunk.static voiddoConvertIntoWritable(@NotNull ShortChunk<?> toConvert, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableShortChunk<?> 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 ShortChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableWritableShortChunk<?> dest) -
doConvertIntoResettable
public static void doConvertIntoResettable(@NotNull @NotNull ShortChunk<?> toConvert, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ResettableShortChunk<?> dest) Converts a ShortChunk into a ResettableShortChunk.- Parameters:
toConvert- the Core chunk to convert to a Legacy chunkdest- the destination Legacy chunk
-