Object

com.rasterfoundry.tile

LayerCache

Related Doc: package tile

Permalink

object LayerCache extends Config with LazyLogging with KamonTrace

ValueReaders need to read layer metadata in order to know how to decode (x/y) queries into resource reads. In this case it requires reading JSON files from S3, which are cached in the reader. Naturally we want to cache this access to prevent every tile request from re-fetching layer metadata. Same logic applies to other layer attributes like layer Histogram.

Things that are cheap to construct but contain internal state we want to re-use use LoadingCache. things that require time to generate, usually a network fetch, use AsyncLoadingCache

Linear Supertypes
KamonTrace, LazyLogging, Config, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LayerCache
  2. KamonTrace
  3. LazyLogging
  4. Config
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. implicit val blockingDispatcher: MessageDispatcher

    Permalink
  6. val cacheConfig: memcached.type

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cogTile(location: String, zoom: Int, key: SpatialKey, buffer: Int = 0): OptionT[Future, MultibandTile]

    Permalink
  9. val config: typesafe.config.Config

    Permalink
    Definition Classes
    Config
  10. lazy val defaultBucket: String

    Permalink
    Definition Classes
    Config
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. lazy val httpHost: String

    Permalink
    Definition Classes
    Config
  17. lazy val httpPort: Int

    Permalink
    Definition Classes
    Config
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def layerHistogram(sceneId: UUID, zoom: Int): OptionT[Future, Array[Histogram[Double]]]

    Permalink
  20. def layerSinglebandTileForExtent(layerId: UUID, zoom: Int, extent: Extent, band: Int): OptionT[Future, Tile]

    Permalink
  21. def layerTile(sceneId: UUID, zoom: Int, key: SpatialKey): OptionT[Future, MultibandTile]

    Permalink
  22. def layerTile(sceneId: UUID, zoom: Int, x: Int, y: Int): OptionT[Future, MultibandTile]

    Permalink
  23. def layerTileForExtent(layerId: UUID, zoom: Int, extent: Extent): OptionT[Future, MultibandTile]

    Permalink
  24. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  25. def maxZoomForLayers(layerIds: Set[UUID])(implicit ec: ExecutionContext): OptionT[Future, Map[String, Int]]

    Permalink
  26. lazy val memcachedClient: KryoMemcachedClient

    Permalink
  27. def modelLayerGlobalHistogram(toolRunId: UUID, subNode: Option[UUID], user: User, voidCache: Boolean = false): OptionT[Future, Histogram[Double]]

    Permalink

    Calculate the histogram for the least resolute zoom level to automatically render tiles

  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val rfCache: CacheClient

    Permalink
  32. val store: PostgresAttributeStore

    Permalink
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. val system: ActorSystem

    Permalink
  35. val tileResolver: TileResolver

    Permalink
  36. def timed[T](name: String)(f: ⇒ T): T

    Permalink
    Definition Classes
    KamonTrace
  37. def timedFuture[T](name: String)(future: Future[T]): Future[T]

    Permalink
    Definition Classes
    KamonTrace
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def toolEvalRequirements(toolRunId: UUID, subNode: Option[UUID], user: User, voidCache: Boolean = false): OptionT[Future, (Timestamp, MapAlgebraAST)]

    Permalink

    Calculate all of the prerequisites to evaluation of an AST over a set of tile sources

  40. def toolRun(toolRunId: UUID, user: User, voidCache: Boolean = false): OptionT[Future, ToolRun]

    Permalink
  41. def toolRunColorMap(toolRunId: UUID, subNode: Option[UUID], user: User, colorRamp: ColorRamp, colorRampName: String): OptionT[Future, ColorMap]

    Permalink

    Calculate all of the prerequisites to evaluation of an AST over a set of tile sources

  42. def traceName[T](name: String)(code: ⇒ T): T

    Permalink
    Definition Classes
    KamonTrace
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. lazy val withCaching: Boolean

    Permalink
    Definition Classes
    Config
  47. implicit lazy val xa: HikariTransactor[IO]

    Permalink

Inherited from KamonTrace

Inherited from LazyLogging

Inherited from Config

Inherited from AnyRef

Inherited from Any

Ungrouped