Class CheckFlagTippecanoeProcessor
- java.lang.Object
-
- org.openstreetmap.atlas.checks.event.FileProcessor<CheckFlagEvent>
-
- org.openstreetmap.atlas.checks.event.CheckFlagTippecanoeProcessor
-
- All Implemented Interfaces:
Processor<CheckFlagEvent>
public class CheckFlagTippecanoeProcessor extends FileProcessor<CheckFlagEvent>
This class is similar to CheckFlagFileProcessor, except here we're making line-delimited GeoJSON that plays well with tippecanoe.
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.atlas.checks.event.FileProcessor
BATCH_SIZE
-
-
Constructor Summary
Constructors Constructor Description CheckFlagTippecanoeProcessor(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper, java.lang.String directory)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetFilename()voidprocess(CheckFlagEvent event)Method to processEvent.voidprocess(ShutdownEvent event)Method to processShutdownEvent.-
Methods inherited from class org.openstreetmap.atlas.checks.event.FileProcessor
doesCompressOutput, getBatchSize, getCount, process, setBatchSize, withCompression, write
-
-
-
-
Constructor Detail
-
CheckFlagTippecanoeProcessor
public CheckFlagTippecanoeProcessor(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper, java.lang.String directory)Default constructor- Parameters:
fileHelper-SparkFileHelperinstance for I/O operationsdirectory- The directory to write output
-
-
Method Detail
-
process
public void process(CheckFlagEvent event)
Description copied from interface:ProcessorMethod to processEvent. If your method can process multiple events simultaneously, then mark your method with@AllowConcurrentEventsannotation.Please make sure to add@Subscribeannotation to the method that is implementing this method.- Parameters:
event-Eventto process
-
process
public void process(ShutdownEvent event)
Description copied from interface:ProcessorMethod to processShutdownEvent. This method will be called only once.
Please make sure to add@Subscribeannotation to the method that is implementing this method.- Parameters:
event-ShutdownEventto process
-
getFilename
protected java.lang.String getFilename()
- Overrides:
getFilenamein classFileProcessor<CheckFlagEvent>- Returns:
- the name of the file to be used in
#write()method to write files
-
-