Class HadoopPbfFileCache
- java.lang.Object
-
- org.openstreetmap.atlas.utilities.caching.ConcurrentResourceCache
-
- org.openstreetmap.atlas.mutator.configuration.parsing.provider.file.HadoopPbfFileCache
-
- All Implemented Interfaces:
org.openstreetmap.atlas.utilities.caching.ResourceCache
public class HadoopPbfFileCache extends org.openstreetmap.atlas.utilities.caching.ConcurrentResourceCacheLots of inspiration fromHadoopAtlasFileCache
-
-
Constructor Summary
Constructors Constructor Description HadoopPbfFileCache(java.lang.String parentPbfPath, SlippyTilePersistenceScheme pbfScheme, java.util.Map<java.lang.String,java.lang.String> configuration)HadoopPbfFileCache(java.lang.String parentAtlasPath, SlippyTilePersistenceScheme atlasScheme, org.openstreetmap.atlas.utilities.caching.strategies.CachingStrategy cachingStrategy, java.util.function.Function<java.net.URI,java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource>> fetcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource>get(org.openstreetmap.atlas.geography.sharding.Shard shard)voidinvalidate(org.openstreetmap.atlas.geography.sharding.Shard shard)-
Methods inherited from class org.openstreetmap.atlas.utilities.caching.ConcurrentResourceCache
get, getCacheID, getStrategyName, invalidate, invalidate
-
-
-
-
Constructor Detail
-
HadoopPbfFileCache
public HadoopPbfFileCache(java.lang.String parentPbfPath, SlippyTilePersistenceScheme pbfScheme, java.util.Map<java.lang.String,java.lang.String> configuration)
-
HadoopPbfFileCache
public HadoopPbfFileCache(java.lang.String parentAtlasPath, SlippyTilePersistenceScheme atlasScheme, org.openstreetmap.atlas.utilities.caching.strategies.CachingStrategy cachingStrategy, java.util.function.Function<java.net.URI,java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource>> fetcher)
-
-