java.lang.Object
org.apache.arrow.c.StructVectorUnloader
Helper class that handles converting a
StructVector to a ArrowRecordBatch.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the given struct vector.StructVectorUnloader(StructVector root, boolean includeNullCount, boolean alignBuffers) Constructs a new instance.StructVectorUnloader(StructVector root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionPerforms the depth first traversal of the Vectors to create anArrowRecordBatchsuitable for serialization.
-
Constructor Details
-
StructVectorUnloader
Constructs a new instance of the given struct vector. -
StructVectorUnloader
Constructs a new instance.- Parameters:
root- The struct vector to serialize to anArrowRecordBatch.includeNullCount- Controls whether null count is copied to theArrowRecordBatchalignBuffers- Controls if buffers get aligned to 8-byte boundaries.
-
StructVectorUnloader
public StructVectorUnloader(StructVector root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers) Constructs a new instance.- Parameters:
root- The struct vector to serialize to anArrowRecordBatch.includeNullCount- Controls whether null count is copied to theArrowRecordBatchcodec- the codec for compressing data. If it is null, then no compression is needed.alignBuffers- Controls if buffers get aligned to 8-byte boundaries.
-
-
Method Details
-
getRecordBatch
Performs the depth first traversal of the Vectors to create anArrowRecordBatchsuitable for serialization.
-