public class AtlasLocator extends DataLocator<org.openstreetmap.atlas.geography.atlas.Atlas>
DataLocator.ResourceLocator| Constructor and Description |
|---|
AtlasLocator(java.util.Map<java.lang.String,java.lang.String> sparkContext) |
| Modifier and Type | Method and 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
|
retrieve, retrievepublic AtlasLocator(java.util.Map<java.lang.String,java.lang.String> sparkContext)
public java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.Atlas> atlasForShard(java.lang.String atlasPath,
java.lang.Iterable<java.lang.String> countryShards)
public 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)
DataLocatorreadFrom in class DataLocator<org.openstreetmap.atlas.geography.atlas.Atlas>resource - The resource to read