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.AbstractUnionShim
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMemberWriter
(AbstractObjectWriter colWriter) Performs just the work of adding a vector to the list of existing variants.boolean
hasType
(TypeProtos.MinorType type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.vector.accessor.writer.UnionShim
addMember, addMember, addMember, bindWriter, isProjected, lastWriteIndex, member, rowStartIndex, setNull, setType
Methods inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
bindIndex, bindListener, dump, endArrayValue, endWrite, postRollover, preRollover, restartRow, saveRow, startRow, startWrite
Methods 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
-