Package org.apache.arrow.vector.util
Class VectorSchemaRootAppender
java.lang.Object
org.apache.arrow.vector.util.VectorSchemaRootAppender
Utility to append
VectorSchemaRoot
s with the same schema.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
append
(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoot
s.static void
append
(VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoot
s.
-
Constructor Details
-
VectorSchemaRootAppender
public VectorSchemaRootAppender()
-
-
Method Details
-
append
public static void append(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoot
s.- Parameters:
checkSchema
- if we need to check schema for the vector schema roots.targetRoot
- the vector schema root to be appended.rootsToAppend
- the vector schema roots to append.- Throws:
IllegalArgumentException
- throws if we need to check schema, and checking schema fails.
-
append
Appends a number ofVectorSchemaRoot
s. This method performs schema checking before appending data.- Parameters:
targetRoot
- the vector schema root to be appended.rootsToAppend
- the vector schema roots to append.- Throws:
IllegalArgumentException
- throws if we need to check schema, and checking schema fails.
-