Class UnionShim.AbstractUnionShim
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.UnionShim.AbstractUnionShim
- All Implemented Interfaces:
UnionShim,WriterEvents,WriterPosition
- Enclosing interface:
UnionShim
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.UnionShim
UnionShim.AbstractUnionShimNested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemberWriter(AbstractObjectWriter colWriter) Performs just the work of adding a vector to the list of existing variants.booleanhasType(TypeProtos.MinorType type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.vector.accessor.writer.UnionShim
addMember, addMember, addMember, bindWriter, isProjected, lastWriteIndex, member, rowStartIndex, setNull, setTypeMethods inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
bindIndex, bindListener, dump, endArrayValue, endWrite, postRollover, preRollover, restartRow, saveRow, startRow, startWriteMethods inherited from interface org.apache.drill.exec.vector.accessor.WriterPosition
writeIndex
-
Field Details
-
variants
-
-
Constructor Details
-
AbstractUnionShim
public AbstractUnionShim() -
AbstractUnionShim
-
-
Method Details
-
hasType
-
addMemberWriter
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'saddMember()and repeat those operations.- Parameters:
colWriter- the column (type) writer to add
-