Class MapWriter.ArrayMapWriter
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
org.apache.drill.exec.vector.accessor.writer.MapWriter
org.apache.drill.exec.vector.accessor.writer.MapWriter.ArrayMapWriter
- All Implemented Interfaces:
ColumnWriter,TupleWriter,WriterEvents,WriterPosition
- Enclosing class:
MapWriter
Writer for a an array of maps. A single array index coordinates writes
to the constituent member vectors so that, say, the values for (row 10,
element 5) all occur to the same position in the columns within the map.
Since the map is an array, it has an associated offset vector, which the
parent array writer is responsible for maintaining.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.MapWriter
MapWriter.ArrayMapWriter, MapWriter.DummyArrayMapWriter, MapWriter.DummyMapWriter, MapWriter.SingleMapWriterNested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
AbstractTupleWriter.TupleObjectWriter, AbstractTupleWriter.TupleWriterListenerNested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.TupleWriter
TupleWriter.UndefinedColumnExceptionNested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State -
Field Summary
Fields inherited from class org.apache.drill.exec.vector.accessor.writer.MapWriter
mapColumnSchemaFields inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
childIndex, listener, logger, state, tupleSchema, vectorIndex, writers -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArrayMapWriter(ColumnMetadata schema, List<AbstractObjectWriter> writers) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindIndex(ColumnWriterIndex index) Bind the writer to a writer index.booleanWhether this writer is projected (is backed by a materialized vector), or is unprojected (is just a dummy writer.) In most cases, clients can ignore whether the column is projected and just write to the writer.Methods inherited from class org.apache.drill.exec.vector.accessor.writer.MapWriter
buildMap, buildMapArray, buildMapWriter, buildMapWriter, schemaMethods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
addColumn, addColumn, addColumnWriter, array, array, bindIndex, bindListener, bindListener, column, column, copy, dict, dict, dump, endArrayValue, endWrite, isProjected, lastWriteIndex, listener, nullable, postRollover, preRollover, restartRow, rowStartIndex, saveRow, scalar, scalar, set, setNull, setObject, size, startRow, startWrite, tuple, tuple, tupleSchema, type, type, type, variant, variant, writeIndex
-
Constructor Details
-
ArrayMapWriter
-
-
Method Details
-
bindIndex
Description copied from interface:WriterEventsBind the writer to a writer index.- Specified by:
bindIndexin interfaceWriterEvents- Overrides:
bindIndexin classAbstractTupleWriter- Parameters:
index- the writer index (top level or nested for arrays)
-
isProjected
public boolean isProjected()Description copied from interface:ColumnWriterWhether this writer is projected (is backed by a materialized vector), or is unprojected (is just a dummy writer.) In most cases, clients can ignore whether the column is projected and just write to the writer. This flag handles those special cases where it is helpful to know if the column is projected or not.- Specified by:
isProjectedin interfaceColumnWriter- Overrides:
isProjectedin classAbstractTupleWriter
-