Class UnionBuilder

java.lang.Object
org.apache.drill.exec.record.metadata.UnionBuilder

public class UnionBuilder extends Object
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.