Class ShardedIntegrityChecksSparkJob
- java.lang.Object
-
- org.openstreetmap.atlas.utilities.runtime.Command
-
- org.openstreetmap.atlas.generator.tools.spark.SparkJob
-
- org.openstreetmap.atlas.checks.distributed.IntegrityChecksCommandArguments
-
- org.openstreetmap.atlas.checks.distributed.ShardedIntegrityChecksSparkJob
-
- All Implemented Interfaces:
java.io.Serializable
public class ShardedIntegrityChecksSparkJob extends IntegrityChecksCommandArguments
A spark job for generating integrity checks in a sharded fashion. This allows for a lower local memory profile as well as better parallelization.
This implementation currently only supports Atlas files as an input data source. They must be in the structure: folder/iso_code/iso_z-x-y.atlas
Also required is a reference for how the Atlases are sharded. This can be provided as a sharding.txt file in the input path, or through theshardingargument.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.atlas.checks.distributed.IntegrityChecksCommandArguments
IntegrityChecksCommandArguments.OutputFormats
-
Nested classes/interfaces inherited from class org.openstreetmap.atlas.utilities.runtime.Command
org.openstreetmap.atlas.utilities.runtime.Command.Flag, org.openstreetmap.atlas.utilities.runtime.Command.Optionality, org.openstreetmap.atlas.utilities.runtime.Command.Switch<T extends java.lang.Object>, org.openstreetmap.atlas.utilities.runtime.Command.SwitchList
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.atlas.checks.distributed.IntegrityChecksCommandArguments
ATLAS_FOLDER, OUTPUT_ATLAS_FOLDER, OUTPUT_FLAG_FOLDER, OUTPUT_GEOJSON_FOLDER, OUTPUT_METRIC_FOLDER, OUTPUT_TIPPECANOE_FOLDER
-
-
Constructor Summary
Constructors Constructor Description ShardedIntegrityChecksSparkJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static voidmain(java.lang.String[] args)voidstart(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap)protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchListswitches()-
Methods inherited from class org.openstreetmap.atlas.checks.distributed.IntegrityChecksCommandArguments
countryShardMapFromShardFiles, getAtlasDataSource, objectsToCheck, objectsToCheck
-
Methods inherited from class org.openstreetmap.atlas.generator.tools.spark.SparkJob
configuration, configurationMap, copyToOutput, getAlternateParallelFolderOutput, getAlternateSubFolderOutput, getContext, input, onRun, output, outputToClean, resource, resource, setContext, splitAndSaveAsHadoopFile
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
getName
public java.lang.String getName()
- Specified by:
getNamein classorg.openstreetmap.atlas.generator.tools.spark.SparkJob
-
start
public void start(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap)
- Specified by:
startin classorg.openstreetmap.atlas.generator.tools.spark.SparkJob
-
switches
protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()
- Overrides:
switchesin classIntegrityChecksCommandArguments
-
-