Class MapWriter


public class MapWriter extends DataWriter
Copies the values in specific key-value fields to an in-memory Map. See FieldPath for supported field name expressions.
  • Constructor Details

    • MapWriter

      public MapWriter(FieldPath key, FieldPath value, Map<?,?> map)
      Creates a writer that puts each record's value field into the map under its key field, replacing any earlier entry with the same key.
    • MapWriter

      public MapWriter(String keyFieldPath, String valueFieldPath, Map<?,?> map)
      Creates a writer that puts each record's value field into the map under its key field, replacing any earlier entry with the same key.
  • Method Details