java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.format.geojson.tools.GjRowCollector

public class GjRowCollector extends Object
Collects all elements for a single row in a CSV file. First, each element is registered by its header name. This returns the index of the element. After this, for each row, each element is collected in order. If one or more elements are skipped, the elements set to null. Finally, the entire row is flushed to the CSVPrinter, and the collector is reset.
Author:
scf
  • Constructor Details

    • GjRowCollector

      public GjRowCollector()
      Create a new Collector.
  • Method Details

    • getCollection

      public Map<String,Object> getCollection()
    • setNextLink

      public void setNextLink(String nextLink)
    • setCount

      public void setCount(Long count)
    • collectId

      public void collectId(Object value)
      Collect the ID for the element.
      Parameters:
      value - The value of the id for the current row.
    • collectEntry

      public void collectEntry(String headerName, Object value)
      Collect a new value for the element.
      Parameters:
      headerName - The name of the element.
      value - The value of the element for the current row.
    • flush

      public void flush()
      Flush the Feature to the FeatureCollection, and reset the collector.