public class StructVectorLoader extends Object
StructVector.| Constructor and Description |
|---|
StructVectorLoader(Schema schema)
Construct with a schema.
|
StructVectorLoader(Schema schema,
CompressionCodec.Factory factory)
Construct with a schema and a compression codec factory.
|
| Modifier and Type | Method and Description |
|---|---|
StructVector |
load(BufferAllocator allocator,
ArrowRecordBatch recordBatch)
Loads the record batch into the struct vector.
|
public StructVectorLoader(Schema schema)
schema - buffers are added based on schema.public StructVectorLoader(Schema schema, CompressionCodec.Factory factory)
schema - buffers are added based on schema.factory - the factory to create codec.public StructVector load(BufferAllocator allocator, ArrowRecordBatch recordBatch)
This will not close the record batch.
recordBatch - the batch to loadCopyright © 2024 The Apache Software Foundation. All rights reserved.