public abstract class MapWriter extends AbstractTupleWriter
Modifier and Type | Class and Description |
---|---|
protected static class |
MapWriter.ArrayMapWriter
Writer for a an array of maps.
|
protected static class |
MapWriter.DummyArrayMapWriter |
protected static class |
MapWriter.DummyMapWriter |
protected static class |
MapWriter.SingleMapWriter
Writer for a single (non-array) map.
|
AbstractTupleWriter.TupleObjectWriter, AbstractTupleWriter.TupleWriterListener
TupleWriter.UndefinedColumnException
WriterEvents.ColumnWriterListener, WriterEvents.State
Modifier and Type | Field and Description |
---|---|
protected ColumnMetadata |
mapColumnSchema |
childIndex, listener, logger, state, tupleSchema, vectorIndex, writers
Modifier | Constructor and Description |
---|---|
protected |
MapWriter(ColumnMetadata schema,
List<AbstractObjectWriter> writers) |
Modifier and Type | Method and Description |
---|---|
static AbstractTupleWriter.TupleObjectWriter |
buildMap(ColumnMetadata schema,
MapVector vector,
List<AbstractObjectWriter> writers) |
static AbstractArrayWriter.ArrayObjectWriter |
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) |
ColumnMetadata |
schema()
Returns the schema of the column associated with this writer.
|
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
protected final ColumnMetadata mapColumnSchema
protected MapWriter(ColumnMetadata schema, List<AbstractObjectWriter> writers)
public static AbstractTupleWriter.TupleObjectWriter buildMap(ColumnMetadata schema, MapVector vector, List<AbstractObjectWriter> writers)
public static AbstractArrayWriter.ArrayObjectWriter buildMapArray(ColumnMetadata schema, RepeatedMapVector mapVector, List<AbstractObjectWriter> writers)
public static AbstractObjectWriter buildMapWriter(ColumnMetadata schema, AbstractMapVector vector, List<AbstractObjectWriter> writers)
public static AbstractObjectWriter buildMapWriter(ColumnMetadata schema, AbstractMapVector vector)
public ColumnMetadata schema()
ColumnWriter
Copyright © 1970 The Apache Software Foundation. All rights reserved.