public class VectorUnloader extends Object
VectorSchemaRoot
to a ArrowRecordBatch.| Constructor and Description |
|---|
VectorUnloader(VectorSchemaRoot root)
Constructs 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.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowRecordBatch |
getRecordBatch()
Performs the depth first traversal of the Vectors to create an
ArrowRecordBatch suitable
for serialization. |
public VectorUnloader(VectorSchemaRoot root)
public VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, boolean alignBuffers)
root - The set of vectors to serialize to an ArrowRecordBatch.includeNullCount - Controls whether null count is copied to the ArrowRecordBatchalignBuffers - Controls if buffers get aligned to 8-byte boundaries.public VectorUnloader(VectorSchemaRoot root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers)
root - The set of vectors to serialize to an ArrowRecordBatch.includeNullCount - Controls whether null count is copied to the ArrowRecordBatchcodec - the codec for compressing data. If it is null, then no compression is needed.alignBuffers - Controls if buffers get aligned to 8-byte boundaries.public ArrowRecordBatch getRecordBatch()
ArrowRecordBatch suitable
for serialization.Copyright © 2024 The Apache Software Foundation. All rights reserved.