Package org.openstreetmap.atlas.mutator
Class AtlasMutator
- java.lang.Object
-
- org.openstreetmap.atlas.utilities.runtime.Command
-
- org.openstreetmap.atlas.generator.tools.spark.SparkJob
-
- org.openstreetmap.atlas.mutator.AtlasMutator
-
- All Implemented Interfaces:
java.io.Serializable
public class AtlasMutator extends SparkJob
SparkJobthat applies mutations to Atlas shards, following a specific configuration and Mutator DAG for each country.- 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.StringCOUNTRY_AND_LEVELSprotected static java.lang.StringLEVEL_MESSAGEstatic java.lang.StringLOG_APPLIEDstatic java.lang.StringLOG_ASSIGNEDstatic java.lang.StringLOG_FOLDERstatic java.lang.StringLOG_GENERATEDstatic java.lang.StringMUTATOR_META_DATA_KEYstatic java.lang.StringMUTATOR_META_DATA_SPLITstatic java.lang.StringPOTENTIAL_LOG_FILES_NAMEstatic java.lang.StringPOTENTIAL_LOG_FILES_PATH-
Fields inherited from class org.openstreetmap.atlas.generator.tools.spark.SparkJob
ADDITIONAL_SPARK_OPTIONS, CLUSTER, COMPRESS_OUTPUT, FAILED_FILE, INPUT, OUTPUT, SAVING_SEPARATOR, SPARK_CONTEXT_PROVIDER, SPARK_OPTIONS, SUCCESS_FILE
-
-
Constructor Summary
Constructors Constructor Description AtlasMutator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static voidmain(java.lang.String[] args)intonRun(org.openstreetmap.atlas.utilities.runtime.CommandMap command)voidstart(org.openstreetmap.atlas.utilities.runtime.CommandMap command)The spark Joborg.openstreetmap.atlas.utilities.runtime.Command.SwitchListswitches()-
Methods inherited from class org.openstreetmap.atlas.generator.tools.spark.SparkJob
configuration, configurationMap, copyToOutput, getAlternateParallelFolderOutput, getAlternateSubFolderOutput, getContext, input, output, outputToClean, resource, resource, setContext, splitAndSaveAsHadoopFile
-
-
-
-
Field Detail
-
COUNTRY_AND_LEVELS
public static final java.lang.String COUNTRY_AND_LEVELS
- See Also:
- Constant Field Values
-
POTENTIAL_LOG_FILES_PATH
public static final java.lang.String POTENTIAL_LOG_FILES_PATH
- See Also:
- Constant Field Values
-
POTENTIAL_LOG_FILES_NAME
public static final java.lang.String POTENTIAL_LOG_FILES_NAME
-
MUTATOR_META_DATA_KEY
public static final java.lang.String MUTATOR_META_DATA_KEY
- See Also:
- Constant Field Values
-
MUTATOR_META_DATA_SPLIT
public static final java.lang.String MUTATOR_META_DATA_SPLIT
- See Also:
- Constant Field Values
-
LOG_FOLDER
public static final java.lang.String LOG_FOLDER
- See Also:
- Constant Field Values
-
LOG_GENERATED
public static final java.lang.String LOG_GENERATED
- See Also:
- Constant Field Values
-
LOG_ASSIGNED
public static final java.lang.String LOG_ASSIGNED
- See Also:
- Constant Field Values
-
LOG_APPLIED
public static final java.lang.String LOG_APPLIED
- See Also:
- Constant Field Values
-
LEVEL_MESSAGE
protected static final java.lang.String LEVEL_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
getName
public java.lang.String getName()
-
onRun
public int onRun(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
-
start
public void start(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
Description copied from class:SparkJobThe spark Job
-
-