Class UnionShim.AbstractUnionShim

java.lang.Object
org.apache.drill.exec.vector.accessor.writer.UnionShim.AbstractUnionShim
All Implemented Interfaces:
UnionShim, WriterEvents, WriterPosition
Enclosing interface:
UnionShim

public abstract static class UnionShim.AbstractUnionShim extends Object implements UnionShim
  • Field Details

  • Constructor Details

    • AbstractUnionShim

      public AbstractUnionShim()
    • AbstractUnionShim

      public AbstractUnionShim(AbstractObjectWriter[] variants)
  • Method Details

    • hasType

      public boolean hasType(TypeProtos.MinorType type)
      Specified by:
      hasType in interface UnionShim
    • addMemberWriter

      public void addMemberWriter(AbstractObjectWriter colWriter)
      Performs just the work of adding a vector to the list of existing variants. Called when adding a type via the writer, but also when the result set loader promotes a list from single type to a union, and provides this shim with the writer from the single-list shim. In the latter case, the writer is already initialized and is already part of the metadata for this list; so we don't want to call the list's addMember() and repeat those operations.
      Parameters:
      colWriter - the column (type) writer to add