Package org.apache.arrow.vector.util
Class VectorSchemaRootAppender
java.lang.Object
org.apache.arrow.vector.util.VectorSchemaRootAppender
Utility to append
VectorSchemaRoots with the same schema.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoots.static voidappend(VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoots.
-
Constructor Details
-
VectorSchemaRootAppender
public VectorSchemaRootAppender()
-
-
Method Details
-
append
public static void append(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend) Appends a number ofVectorSchemaRoots.- 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 ofVectorSchemaRoots. 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.
-