Class HadoopPbfFileCache

  • All Implemented Interfaces:
    org.openstreetmap.atlas.utilities.caching.ResourceCache

    public class HadoopPbfFileCache
    extends org.openstreetmap.atlas.utilities.caching.ConcurrentResourceCache
    Lots of inspiration from HadoopAtlasFileCache
    • 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)  
      void invalidate​(org.openstreetmap.atlas.geography.sharding.Shard shard)  
      • Methods inherited from class org.openstreetmap.atlas.utilities.caching.ConcurrentResourceCache

        get, getCacheID, getStrategyName, invalidate, invalidate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openstreetmap.atlas.utilities.caching.ResourceCache

        get
    • 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)
    • Method Detail

      • get

        public java.util.Optional<org.openstreetmap.atlas.streaming.resource.Resource> get​(org.openstreetmap.atlas.geography.sharding.Shard shard)
      • invalidate

        public void invalidate​(org.openstreetmap.atlas.geography.sharding.Shard shard)