Class DataLocator.ResourceLocator

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    DataLocator<T>

    public static final class DataLocator.ResourceLocator
    extends DataLocator<org.openstreetmap.atlas.streaming.resource.Resource>
    Locator that returns Resources.
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource> 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

      • ResourceLocator

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

      • readFrom

        protected java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource> 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.streaming.resource.Resource>
        Parameters:
        resource - The resource to read
        Returns:
        The fetched object