Class

com.twitter.storehaus.algebra

ConvertedStore

Related Doc: package algebra

Permalink

class ConvertedStore[K1, -K2, V1, V2] extends ConvertedReadableStore[K1, K2, V1, V2] with Store[K2, V2]

Use an injection on V2,V1 to convert a store of values V2. If the value stored in the underlying store cannot be converted back to V2, then you will get a Future.exception containing the string "cannot be converted" TODO: we should add a specific exception type here so we can safely filter these cases to Future.None if we so choose.

Annotations
@deprecated
Deprecated

(Since version 0.3.1) Use com.twitter.storehaus.ConvertedStore instead

Linear Supertypes
Store[K2, V2], WritableStore[K2, Option[V2]], ConvertedReadableStore[K1, K2, V1, V2], AbstractReadableStore[K2, V2], ReadableStore[K2, V2], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConvertedStore
  2. Store
  3. WritableStore
  4. ConvertedReadableStore
  5. AbstractReadableStore
  6. ReadableStore
  7. Closable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConvertedStore(store: Store[K1, V1])(kfn: (K2) ⇒ K1)(implicit inj: Injection[V2, V1])

    Permalink

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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(t: Time): Future[Unit]

    Permalink
    Definition Classes
    ConvertedStore → WritableStore → ConvertedReadableStore → ReadableStore → Closable
  7. def close(after: Duration): Future[Unit]

    Permalink
    Definition Classes
    Closable
  8. final def close(): Future[Unit]

    Permalink
    Definition Classes
    Closable
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(k2: K2): Future[Option[V2]]

    Permalink
    Definition Classes
    ConvertedReadableStore → ReadableStore
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def multiGet[K3 <: K2](s: Set[K3]): Map[K3, Future[Option[V2]]]

    Permalink
    Definition Classes
    ConvertedReadableStore → ReadableStore
  17. def multiPut[K3 <: K2](kvs: Map[K3, Option[V2]]): Map[K3, Future[Unit]]

    Permalink
    Definition Classes
    ConvertedStore → WritableStore
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def put(kv: (K2, Option[V2])): Future[Unit]

    Permalink
    Definition Classes
    ConvertedStore → WritableStore
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Store[K2, V2]

Inherited from WritableStore[K2, Option[V2]]

Inherited from ConvertedReadableStore[K1, K2, V1, V2]

Inherited from AbstractReadableStore[K2, V2]

Inherited from ReadableStore[K2, V2]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped