public final class CheckFlagFileProcessor extends FileProcessor<CheckFlagEvent>
Processor for CheckFlagEvents to write them into line delimited GeoJson filesBATCH_SIZE| Constructor and Description |
|---|
CheckFlagFileProcessor(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper,
java.lang.String outputFolder)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(CheckFlagEvent event)
Method to process
Event. |
void |
process(ShutdownEvent event)
Method to process
ShutdownEvent. |
doesCompressOutput, getBatchSize, getCount, getFilename, process, setBatchSize, withCompression, writepublic CheckFlagFileProcessor(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper,
java.lang.String outputFolder)
fileHelper - SparkFileHelper for I/O operationsoutputFolder - output folder path to write files topublic void process(CheckFlagEvent event)
ProcessorEvent. 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.event - Event to processpublic void process(ShutdownEvent event)
ProcessorShutdownEvent. This method will be called only once.@Subscribe annotation to the method that is
implementing this method.event - ShutdownEvent to process