Class AtlasLocator

  • All Implemented Interfaces:
    java.io.Serializable

    public class AtlasLocator
    extends DataLocator<org.openstreetmap.atlas.geography.atlas.Atlas>
    Locate Atlas Files.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AtlasLocator​(java.util.Map<java.lang.String,​java.lang.String> sparkContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.Atlas> atlasForShard​(java.lang.String atlasPath, java.lang.Iterable<java.lang.String> countryShards)  
      java.util.Optional<org.openstreetmap.atlas.geography.atlas.Atlas> atlasForShard​(java.lang.String atlasPath, java.lang.String countryShard)  
      protected java.util.Optional<org.openstreetmap.atlas.geography.atlas.Atlas> readFrom​(org.openstreetmap.atlas.streaming.resource.Resource resource)
      Transform a resource into a fetched object
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AtlasLocator

        public AtlasLocator​(java.util.Map<java.lang.String,​java.lang.String> sparkContext)
    • Method Detail

      • atlasForShard

        public java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.Atlas> atlasForShard​(java.lang.String atlasPath,
                                                                                               java.lang.Iterable<java.lang.String> countryShards)
      • atlasForShard

        public java.util.Optional<org.openstreetmap.atlas.geography.atlas.Atlas> atlasForShard​(java.lang.String atlasPath,
                                                                                               java.lang.String countryShard)
      • readFrom

        protected java.util.Optional<org.openstreetmap.atlas.geography.atlas.Atlas> readFrom​(org.openstreetmap.atlas.streaming.resource.Resource resource)
        Description copied from class: DataLocator
        Transform a resource into a fetched object
        Specified by:
        readFrom in class DataLocator<org.openstreetmap.atlas.geography.atlas.Atlas>
        Parameters:
        resource - The resource to read
        Returns:
        The fetched object