Class AtlasGenerator
- java.lang.Object
-
- org.openstreetmap.atlas.utilities.runtime.Command
-
- org.openstreetmap.atlas.generator.tools.spark.SparkJob
-
- org.openstreetmap.atlas.generator.AtlasGenerator
-
- All Implemented Interfaces:
java.io.Serializable
public class AtlasGenerator extends SparkJob
GenerateAtlasShards for a specific version and a specific set of countries- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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 Modifier and Type Field Description static java.lang.StringLINE_DELIMITED_GEOJSON_STATISTICS_FOLDER-
Fields inherited from class org.openstreetmap.atlas.generator.tools.spark.SparkJob
ADDITIONAL_SPARK_OPTIONS, COMPRESS_OUTPUT, FAILED_FILE, INPUT, MASTER, OUTPUT, SAVING_SEPARATOR, SPARK_CONTEXT_PROVIDER, SPARK_OPTIONS, SUCCESS_FILE
-
-
Constructor Summary
Constructors Constructor Description AtlasGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.List<org.openstreetmap.atlas.generator.AtlasGenerationTask>generateTasks(java.util.List<java.lang.String> countries, org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap boundaryMap, org.openstreetmap.atlas.geography.sharding.Sharding sharding)Generates aListofAtlasGenerationTasks for given countries using givenCountryBoundaryMapandShardingstrategy.java.lang.StringgetName()static voidmain(java.lang.String[] args)protected java.util.List<java.lang.String>outputToClean(org.openstreetmap.atlas.utilities.runtime.CommandMap command)Define all the folders to clean before a run.voidstart(org.openstreetmap.atlas.utilities.runtime.CommandMap command)The spark Jobprotected org.openstreetmap.atlas.utilities.runtime.Command.SwitchListswitches()-
Methods inherited from class org.openstreetmap.atlas.generator.tools.spark.SparkJob
configuration, configurationMap, copyToOutput, getAlternateParallelFolderOutput, getAlternateSubFolderOutput, getContext, input, onRun, output, resource, resource, setContext, splitAndSaveAsHadoopFile
-
-
-
-
Field Detail
-
LINE_DELIMITED_GEOJSON_STATISTICS_FOLDER
public static final java.lang.String LINE_DELIMITED_GEOJSON_STATISTICS_FOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
generateTasks
protected static java.util.List<org.openstreetmap.atlas.generator.AtlasGenerationTask> generateTasks(java.util.List<java.lang.String> countries, org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap boundaryMap, org.openstreetmap.atlas.geography.sharding.Sharding sharding)Generates aListofAtlasGenerationTasks for given countries using givenCountryBoundaryMapandShardingstrategy.- Parameters:
countries- Countries to generate tasks forboundaryMap-CountryBoundaryMapto read country boundariessharding-Shardingstrategy- Returns:
ListofAtlasGenerationTasks
-
getName
public java.lang.String getName()
-
start
public void start(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
Description copied from class:SparkJobThe spark Job
-
outputToClean
protected java.util.List<java.lang.String> outputToClean(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
Description copied from class:SparkJobDefine all the folders to clean before a run.- Overrides:
outputToCleanin classSparkJob- Parameters:
command- The command parameters sent to the main class.- Returns:
- All the paths to clean
-
-