public class StructVectorUnloader extends Object
StructVector to a
ArrowRecordBatch.| Constructor and Description |
|---|
StructVectorUnloader(StructVector root)
Constructs 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.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowRecordBatch |
getRecordBatch()
Performs the depth first traversal of the Vectors to create an
ArrowRecordBatch suitable for serialization. |
public StructVectorUnloader(StructVector root)
public StructVectorUnloader(StructVector root, boolean includeNullCount, boolean alignBuffers)
root - The struct vector 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 StructVectorUnloader(StructVector root, boolean includeNullCount, CompressionCodec codec, boolean alignBuffers)
root - The struct vector 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.