com.twitter.storehaus.algebra

ConvertedStore

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    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