java.lang.Object
org.apache.arrow.c.StructVectorLoader
Loads buffers into
StructVector.-
Constructor Summary
ConstructorsConstructorDescriptionStructVectorLoader(Schema schema) Construct with a schema.StructVectorLoader(Schema schema, CompressionCodec.Factory factory) Construct with a schema and a compression codec factory. -
Method Summary
Modifier and TypeMethodDescriptionload(BufferAllocator allocator, ArrowRecordBatch recordBatch) Loads the record batch into the struct vector.
-
Constructor Details
-
StructVectorLoader
Construct with a schema.The schema referred to here can be obtained from the struct vector. The schema here should be the children of a struct vector, not a schema containing the struct field itself. For example:
Schema schema = new Schema(structVector.getField().getChildren());- Parameters:
schema- buffers are added based on schema.
-
StructVectorLoader
Construct with a schema and a compression codec factory.- Parameters:
schema- buffers are added based on schema.factory- the factory to create codec.
-
-
Method Details
-
load
Loads the record batch into the struct vector.This will not close the record batch.
- Parameters:
recordBatch- the batch to load
-