Packages

c

com.spotify.scio.util

TransformingCache

abstract class TransformingCache[K, U, V] extends ForwardingObject with google.common.cache.Cache[K, V]

Similar to com.google.common.cache.ForwardingCache but with key transformation using the injective function #transformKey(K) from K to U.
This cache won't be able to return original keys, hence #getAllPresent(Iterable) and #asMap() both throw an UnsupportedOperationException.

Source
TransformingCache.java
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransformingCache
  2. Cache
  3. ForwardingObject
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TransformingCache()

Abstract Value Members

  1. abstract def delegate(): google.common.cache.Cache[U, V]
    Attributes
    protected[util]
    Definition Classes
    TransformingCache → ForwardingObject
  2. abstract def transformKey(key: K): U
    Attributes
    protected[util]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asMap(): ConcurrentMap[K, V]
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  6. def cleanUp(): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def get(key: K, loader: Callable[_ <: V]): V
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  12. def getAllPresent(keys: Iterable[_ <: AnyRef]): ImmutableMap[K, V]
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getIfPresent(key: AnyRef): V
    Definition Classes
    TransformingCache → Cache
    Annotations
    @CheckForNull() @Override() @SuppressWarnings()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def invalidate(key: AnyRef): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override() @SuppressWarnings()
  17. def invalidateAll(): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  18. def invalidateAll(keys: Iterable[_ <: AnyRef]): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def put(key: K, value: V): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  24. def putAll(m: Map[_ <: K, _ <: V]): Unit
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  25. def size(): Long
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  26. def stats(): CacheStats
    Definition Classes
    TransformingCache → Cache
    Annotations
    @Override()
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    ForwardingObject → AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from google.common.cache.Cache[K, V]

Inherited from ForwardingObject

Inherited from AnyRef

Inherited from Any

Ungrouped