Class VectorSchemaRootTransformer.Builder

java.lang.Object
org.apache.arrow.driver.jdbc.utils.VectorSchemaRootTransformer.Builder
Enclosing interface:
VectorSchemaRootTransformer

public static class VectorSchemaRootTransformer.Builder extends Object
Transformer's helper class; builds a new VectorSchemaRoot.
  • Constructor Details

  • Method Details

    • renameFieldVector

      public VectorSchemaRootTransformer.Builder renameFieldVector(String originalVectorName, String transformedVectorName)
      Add task to transform a vector to a new vector renaming it. This also adds transformedVectorName to the transformed VectorSchemaRoot schema.
      Parameters:
      originalVectorName - Name of the original vector to be transformed.
      transformedVectorName - Name of the vector that is the result of the transformation.
      Returns:
      a VectorSchemaRoot instance with a task to rename a field vector.
    • addEmptyField

      public VectorSchemaRootTransformer.Builder addEmptyField(String fieldName, Types.MinorType fieldType)
      Adds an empty field to the transformed VectorSchemaRoot schema.
      Parameters:
      fieldName - Name of the field to be added.
      fieldType - Type of the field to be added.
      Returns:
      a VectorSchemaRoot instance with the current tasks.
    • addEmptyField

      public VectorSchemaRootTransformer.Builder addEmptyField(String fieldName, ArrowType fieldType)
      Adds an empty field to the transformed VectorSchemaRoot schema.
      Parameters:
      fieldName - Name of the field to be added.
      fieldType - Type of the field to be added.
      Returns:
      a VectorSchemaRoot instance with the current tasks.
    • build