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 TypeMethodDescriptionvoid
convertWritableInto
(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.WritableChunk<?> dheChunk, ResettableWritableChunk<?> dhcChunk) Convert the input EnterpriseWritableChunk
into a CommunityWritableChunk
.static ChunkAdapter
Create 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
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 EnterpriseWritableChunk
into a CommunityWritableChunk
. 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 converteddhcChunk
- the chunk to convert into.
-