java.lang.Object
org.apache.drill.exec.physical.resultSet.impl.ContainerState
org.apache.drill.exec.physical.resultSet.impl.UnionState
All Implemented Interfaces:
VariantWriter.VariantWriterListener

public class UnionState extends ContainerState implements VariantWriter.VariantWriterListener
Represents the contents of a union vector (or a pseudo-union for lists). Holds the column states for the "columns" that make up the type members of the union, and implements the writer callbacks to add members to a union. This class is used when a column is a (single, non-repeated) UNION. See the ListState for when the union is used inside a LIST (repeated union) type.