Class VectorSchemaRootTransformer.Builder
java.lang.Object
org.apache.arrow.driver.jdbc.utils.VectorSchemaRootTransformer.Builder
- Enclosing interface:
- VectorSchemaRootTransformer
Transformer's helper class; builds a new
VectorSchemaRoot
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEmptyField
(String fieldName, ArrowType fieldType) Adds an empty field to the transformedVectorSchemaRoot
schema.addEmptyField
(String fieldName, Types.MinorType fieldType) Adds an empty field to the transformedVectorSchemaRoot
schema.build()
renameFieldVector
(String originalVectorName, String transformedVectorName) Add task to transform a vector to a new vector renaming it.
-
Constructor Details
-
Builder
-
-
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 transformedVectorSchemaRoot
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 transformedVectorSchemaRoot
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
Adds an empty field to the transformedVectorSchemaRoot
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
-