Class ShardedSparkJob

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class ShardedSparkJob
    extends SparkJob
    Spark job that takes care of reading the sharding and country list and starts with a JavaPairRDD of CountryName to Shard
    See Also:
    Serialized Form
    • Field Detail

      • COUNTRIES

        public static final org.openstreetmap.atlas.utilities.runtime.Command.Switch<org.openstreetmap.atlas.utilities.collections.StringList> COUNTRIES
      • SHARDING_TYPE

        public static final org.openstreetmap.atlas.utilities.runtime.Command.Switch<java.lang.String> SHARDING_TYPE
      • COUNTRY_SHAPES

        public static final org.openstreetmap.atlas.utilities.runtime.Command.Switch<java.lang.String> COUNTRY_SHAPES
    • Constructor Detail

      • ShardedSparkJob

        public ShardedSparkJob()
    • Method Detail

      • start

        public void start​(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
        Description copied from class: SparkJob
        The spark Job
        Specified by:
        start in class SparkJob
        Parameters:
        command - The arguments passed to the main method
      • start2

        public abstract void start2​(org.openstreetmap.atlas.utilities.runtime.CommandMap command,
                                    org.openstreetmap.atlas.geography.sharding.Sharding sharding,
                                    org.openstreetmap.atlas.utilities.maps.MultiMap<java.lang.String,​org.openstreetmap.atlas.geography.sharding.Shard> countryToShardMap)
      • switches

        public org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()
        Overrides:
        switches in class SparkJob