Class RepeatedListBuilder
java.lang.Object
org.apache.drill.exec.record.metadata.RepeatedListBuilder
Builder for a repeated list. Drill's metadata represents a repeated
list as a chain of materialized fields and that is the pattern used
here. It would certainly be cleaner to have a single field, with the
number of dimensions as a property, but that is not how Drill evolved.
An instance can be created with and without parent container.
In the first case, a 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 a stand-alone entity.
The resumeXXX
methods do not produce any action and return null.
To access built column buildColumn()
should be used.-
Constructor Summary
ConstructorDescriptionRepeatedListBuilder
(String name) RepeatedListBuilder
(org.apache.drill.exec.record.metadata.SchemaContainer parent, String name) -
Method Summary
Modifier and TypeMethodDescriptionaddArray
(TypeProtos.MinorType type) addArray
(TypeProtos.MinorType type, int width) addArray
(TypeProtos.MinorType type, int precision, int scale) void
addColumn
(ColumnMetadata column) addList()
void
build()
-
Constructor Details
-
RepeatedListBuilder
-
RepeatedListBuilder
public RepeatedListBuilder(org.apache.drill.exec.record.metadata.SchemaContainer parent, String name)
-
-
Method Details
-
addDimension
-
addMapArray
-
addDictArray
-
addArray
-
addArray
-
addArray
-
addList
-
buildColumn
-
build
public void build() -
resumeList
-
resumeSchema
-
resumeUnion
-
resumeMap
-
resumeDict
-
addColumn
-