Class MapWriter.SingleMapWriter

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

protected static class MapWriter.SingleMapWriter extends MapWriter
Writer for a single (non-array) map. Clients don't really "write" maps; rather, this writer is a holder for the columns within the map, and those columns are what is written.
  • Constructor Details

  • Method Details

    • endWrite

      public void endWrite()
      Description copied from interface: WriterEvents
      End a batch: finalize any vector values.
      Specified by:
      endWrite in interface WriterEvents
      Overrides:
      endWrite in class AbstractTupleWriter
    • preRollover

      public void preRollover()
      Description copied from interface: WriterEvents
      The vectors backing this vector are about to roll over. Finish the current batch up to, but not including, the current row.
      Specified by:
      preRollover in interface WriterEvents
      Overrides:
      preRollover in class AbstractTupleWriter
    • 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