Class MapWriter.ArrayMapWriter

All Implemented Interfaces:
ColumnWriter, TupleWriter, WriterEvents, WriterPosition
Enclosing class:
MapWriter

protected static class MapWriter.ArrayMapWriter extends 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.
  • Constructor Details

  • Method Details

    • bindIndex

      public void bindIndex(ColumnWriterIndex index)
      Description copied from interface: WriterEvents
      Bind the writer to a writer index.
      Specified by:
      bindIndex in interface WriterEvents
      Overrides:
      bindIndex in class AbstractTupleWriter
      Parameters:
      index - the writer index (top level or nested for arrays)
    • isProjected

      public boolean isProjected()
      Description copied from interface: ColumnWriter
      Whether 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:
      isProjected in interface ColumnWriter
      Overrides:
      isProjected in class AbstractTupleWriter