Package org.apache.drill.exec.record
Class SchemaBuilder
java.lang.Object
org.apache.drill.exec.record.SchemaBuilder
A reusable builder that supports the creation of BatchSchemas. Can have a supporting expected object. If the expected Schema object is defined, the
builder will always check that this schema is a equal or more materialized version of the current schema.
-
Method Summary
Modifier and TypeMethodDescriptionaddFields
(Iterable<MaterializedField> fields) build()
Generate a new BatchSchema object based on the current state of the builder.setSelectionVectorMode
(BatchSchema.SelectionVectorMode selectionVectorMode)
-
Method Details
-
setSelectionVectorMode
-
addFields
-
addSerializedFields
-
addField
-
removeField
- Throws:
SchemaChangeException
-
build
Generate a new BatchSchema object based on the current state of the builder.- Returns:
- Throws:
SchemaChangeException
-