Class CheckFlagGeoJsonProcessor

    • 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)
        Description copied from interface: Processor
        Method to process Event. If your method can process multiple events simultaneously, then mark your method with @AllowConcurrentEvents annotation.Please make sure to add @Subscribe annotation to the method that is implementing this method.
        Specified by:
        process in interface Processor<CheckFlagEvent>
        Parameters:
        event - Event to process
      • 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)