Package org.apache.arrow.vector
Class VectorLoader
java.lang.Object
org.apache.arrow.vector.VectorLoader
Loads buffers into vectors.
-
Constructor Summary
ConstructorDescriptionVectorLoader
(VectorSchemaRoot root) Construct with a root to load and will create children in root based on schema.VectorLoader
(VectorSchemaRoot root, CompressionCodec.Factory factory) Construct with a root to load and will create children in root based on schema. -
Method Summary
Modifier and TypeMethodDescriptionvoid
load
(ArrowRecordBatch recordBatch) Loads the record batch in the vectors.
-
Constructor Details
-
VectorLoader
Construct with a root to load and will create children in root based on schema.- Parameters:
root
- the root to add vectors to based on schema
-
VectorLoader
Construct with a root to load and will create children in root based on schema.- Parameters:
root
- the root to add vectors to based on schema.factory
- the factory to create codec.
-
-
Method Details
-
load
Loads the record batch in the vectors. will not close the record batch- Parameters:
recordBatch
- the batch to load
-