java.lang.Object
org.apache.arrow.vector.VectorUnloader
Helper class that handles converting a
VectorSchemaRoot to a ArrowRecordBatch.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the given set of vectors.VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, boolean alignBuffers) Constructs a new instance.VectorUnloader(VectorSchemaRoot 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
-
VectorUnloader
Constructs a new instance of the given set of vectors. -
VectorUnloader
Constructs a new instance.- Parameters:
root- The set of vectors to serialize to anArrowRecordBatch.includeNullCount- Controls whether null count is copied to theArrowRecordBatchalignBuffers- Controls if buffers get aligned to 8-byte boundaries.
-
VectorUnloader
public VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers) Constructs a new instance.- Parameters:
root- The set of vectors 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.
-