Interface ArrayExpansionKernel<T>
- Type Parameters:
T- The type of elements within the array being expanded.
- All Superinterfaces:
ExpansionKernel<T>
- All Known Implementing Classes:
BooleanArrayExpansionKernel,BoxedBooleanArrayExpansionKernel,ByteArrayExpansionKernel,CharArrayExpansionKernel,DoubleArrayExpansionKernel,FloatArrayExpansionKernel,IntArrayExpansionKernel,LongArrayExpansionKernel,ObjectArrayExpansionKernel,ShortArrayExpansionKernel
The
ArrayExpansionKernel interface provides a mechanism for expanding chunks containing arrays into a pair of
LongChunk and Chunk<T>, enabling efficient handling of array-typed columnar data. This interface is
part of the Deephaven Barrage extensions for processing structured data in Flight/Barrage streams.
An ArrayExpansionKernel is specialized for handling array-like data, where each element in the source chunk
may itself be an array. The kernel performs the transformation to a flattened format, suitable for further processing
or serialization.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> ArrayExpansionKernel<T>makeExpansionKernel(ChunkType chunkType, Class<?> componentType) Creates anArrayExpansionKernelfor the specifiedChunkTypeand component type.Methods inherited from interface io.deephaven.extensions.barrage.chunk.ExpansionKernel
computeSize, contract, expand
-
Method Details
-
makeExpansionKernel
Creates anArrayExpansionKernelfor the specifiedChunkTypeand component type.The implementation is chosen based on the provided
chunkTypeandcomponentType, with specialized kernels for primitive types and boxed types, includingbooleanhandling for packed bit representations.- Type Parameters:
T- The type of elements within the array being expanded.- Parameters:
chunkType- TheChunkTyperepresenting the type of data in the chunk.componentType- The class of the component type within the array.- Returns:
- An
ArrayExpansionKernelcapable of expanding chunks of the specified type.
-