public static class VectorSchemaRootTransformer.Builder extends Object
VectorSchemaRoot
.Constructor and Description |
---|
Builder(Schema schema,
BufferAllocator bufferAllocator) |
Modifier and Type | Method and Description |
---|---|
VectorSchemaRootTransformer.Builder |
addEmptyField(String fieldName,
ArrowType fieldType)
Adds an empty field to the transformed
VectorSchemaRoot schema. |
VectorSchemaRootTransformer.Builder |
addEmptyField(String fieldName,
Types.MinorType fieldType)
Adds an empty field to the transformed
VectorSchemaRoot schema. |
VectorSchemaRootTransformer |
build() |
VectorSchemaRootTransformer.Builder |
renameFieldVector(String originalVectorName,
String transformedVectorName)
Add task to transform a vector to a new vector renaming it.
|
public Builder(Schema schema, BufferAllocator bufferAllocator)
public VectorSchemaRootTransformer.Builder renameFieldVector(String originalVectorName, String transformedVectorName)
VectorSchemaRoot
schema.originalVectorName
- Name of the original vector to be transformed.transformedVectorName
- Name of the vector that is the result of the transformation.public VectorSchemaRootTransformer.Builder addEmptyField(String fieldName, Types.MinorType fieldType)
VectorSchemaRoot
schema.fieldName
- Name of the field to be added.fieldType
- Type of the field to be added.public VectorSchemaRootTransformer.Builder addEmptyField(String fieldName, ArrowType fieldType)
VectorSchemaRoot
schema.fieldName
- Name of the field to be added.fieldType
- Type of the field to be added.public VectorSchemaRootTransformer build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.