Class MapWriter
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
org.apache.drill.exec.vector.accessor.writer.MapWriter
- All Implemented Interfaces:
ColumnWriter
,TupleWriter
,WriterEvents
,WriterPosition
- Direct Known Subclasses:
MapWriter.ArrayMapWriter
,MapWriter.DummyArrayMapWriter
,MapWriter.DummyMapWriter
,MapWriter.SingleMapWriter
Writer for a Drill Map type. Maps are actually tuples, just like rows.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Writer for a an array of maps.protected static class
protected static class
protected static class
Writer for a single (non-array) map.Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
AbstractTupleWriter.TupleObjectWriter, AbstractTupleWriter.TupleWriterListener
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.TupleWriter
TupleWriter.UndefinedColumnException
Nested 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.AbstractTupleWriter
childIndex, listener, logger, state, tupleSchema, vectorIndex, writers
-
Constructor Summary
ModifierConstructorDescriptionprotected
MapWriter
(ColumnMetadata schema, List<AbstractObjectWriter> writers) -
Method Summary
Modifier and TypeMethodDescriptionbuildMap
(ColumnMetadata schema, MapVector vector, List<AbstractObjectWriter> writers) buildMapArray
(ColumnMetadata schema, RepeatedMapVector mapVector, List<AbstractObjectWriter> writers) static AbstractObjectWriter
buildMapWriter
(ColumnMetadata schema, AbstractMapVector vector) static AbstractObjectWriter
buildMapWriter
(ColumnMetadata schema, AbstractMapVector vector, List<AbstractObjectWriter> writers) schema()
Returns the schema of the column associated with this writer.Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractTupleWriter
addColumn, addColumn, addColumnWriter, array, array, bindIndex, bindIndex, bindListener, bindListener, column, column, copy, dict, dict, dump, endArrayValue, endWrite, isProjected, 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
-
Field Details
-
mapColumnSchema
-
-
Constructor Details
-
MapWriter
-
-
Method Details
-
buildMap
public static AbstractTupleWriter.TupleObjectWriter buildMap(ColumnMetadata schema, MapVector vector, List<AbstractObjectWriter> writers) -
buildMapArray
public static AbstractArrayWriter.ArrayObjectWriter buildMapArray(ColumnMetadata schema, RepeatedMapVector mapVector, List<AbstractObjectWriter> writers) -
buildMapWriter
public static AbstractObjectWriter buildMapWriter(ColumnMetadata schema, AbstractMapVector vector, List<AbstractObjectWriter> writers) -
buildMapWriter
-
schema
Description copied from interface:ColumnWriter
Returns the schema of the column associated with this writer.- Returns:
- schema for this writer's column
-