Class VectorSchemaRootAppender

java.lang.Object
org.apache.arrow.vector.util.VectorSchemaRootAppender

public class VectorSchemaRootAppender extends Object
Utility to append VectorSchemaRoots with the same schema.
  • Constructor Details

    • VectorSchemaRootAppender

      public VectorSchemaRootAppender()
  • Method Details

    • append

      public static void append(boolean checkSchema, VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend)
      Appends a number of VectorSchemaRoots.
      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

      public static void append(VectorSchemaRoot targetRoot, VectorSchemaRoot... rootsToAppend)
      Appends a number of VectorSchemaRoots. 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.