Class CheckFlagGeoJsonProcessor

  • All Implemented Interfaces:
    org.openstreetmap.atlas.event.Processor<CheckFlagEvent>

    public final class CheckFlagGeoJsonProcessor
    extends java.lang.Object
    implements org.openstreetmap.atlas.event.Processor<CheckFlagEvent>
    A Processor for CheckFlagEvents to write them into GeoJson files
    • Constructor Detail

      • CheckFlagGeoJsonProcessor

        public CheckFlagGeoJsonProcessor​(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper,
                                         java.lang.String outputFolder)
        Default constructor
        Parameters:
        fileHelper - SparkFileHelper for I/O operations
        outputFolder - output folder path to write files to
    • Method Detail

      • process

        public void process​(CheckFlagEvent event)
        Specified by:
        process in interface org.openstreetmap.atlas.event.Processor<CheckFlagEvent>
      • process

        public void process​(org.openstreetmap.atlas.event.ShutdownEvent event)
        Specified by:
        process in interface org.openstreetmap.atlas.event.Processor<CheckFlagEvent>
      • withBatchSizeOverride

        public CheckFlagGeoJsonProcessor withBatchSizeOverride​(int batchSizeOverride)
        Overrides the computed batch size
        Parameters:
        batchSizeOverride - override batch size value
        Returns:
        the CheckFlagFileProcessor
      • computeBatchSize

        protected int computeBatchSize()
        Returns bucket size based on the number of Checks we have bucketed so far
        Returns:
        batch size
      • getFilename

        protected java.lang.String getFilename​(java.lang.String challenge,
                                               int size)