Class UnionBuilder
java.lang.Object
org.apache.drill.exec.record.metadata.UnionBuilder
Builds unions or (non-repeated) lists (which implicitly contain
unions.)
Class can be created with and without parent container.
In the first case, column is added to the parent container during creation
and all resumeXXX methods return qualified parent container.
In the second case column is created without parent container as standalone entity.
All resumeXXX methods do not produce any action and return null.
To access built column
buildColumn()
should be used.-
Constructor Summary
ConstructorDescriptionUnionBuilder
(String name, TypeProtos.MinorType type) UnionBuilder
(org.apache.drill.exec.record.metadata.SchemaContainer parent, String name, TypeProtos.MinorType type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(ColumnMetadata column) addDict()
addList()
addMap()
addType
(TypeProtos.MinorType type) void
build()
-
Constructor Details
-
UnionBuilder
-
UnionBuilder
public UnionBuilder(org.apache.drill.exec.record.metadata.SchemaContainer parent, String name, TypeProtos.MinorType type)
-
-
Method Details
-
addColumn
-
addType
-
addMap
-
addList
-
addRepeatedList
-
addDict
-
buildColumn
-
build
public void build() -
resumeSchema
-
resumeMap
-
resumeUnion
-
resumeList
-
resumeDict
-
resumeRepeatedList
-