Class

com.twitter.storehaus.algebra

ConvertedMergeableStore

Related Doc: package algebra

Permalink

class ConvertedMergeableStore[K1, -K2, V1, V2] extends storehaus.ConvertedStore[K1, K2, V1, V2] with MergeableStore[K2, V2]

Caveat Emptor! The semigroup on the resulting ConvertedMergeableStore will be the bijected semigroup from Semigroup[V1] => Semigroup[V2]. This will not necessarily result in the behavior you'd expect.

Linear Supertypes
MergeableStore[K2, V2], Mergeable[K2, V2], storehaus.ConvertedStore[K1, K2, V1, V2], 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. ConvertedMergeableStore
  2. MergeableStore
  3. Mergeable
  4. ConvertedStore
  5. Store
  6. WritableStore
  7. ConvertedReadableStore
  8. AbstractReadableStore
  9. ReadableStore
  10. Closable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConvertedMergeableStore(store: MergeableStore[K1, V1])(kfn: (K2) ⇒ K1)(implicit bij: ImplicitBijection[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

    Close this store and release any resources.

    Close this store and release any resources. It is undefined what happens if you merge after close

    Definition Classes
    ConvertedMergeableStoreMergeable → 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 merge(kv: (K2, V2)): Future[Option[V2]]

    Permalink

    Returns the value JUST BEFORE the merge.

    Returns the value JUST BEFORE the merge. If it is empty, it is like a zero. the key should hold: val (k,v) = kv result = get(k) key is set to: result.map(Semigroup.plus(_, Some(v)).getOrElse(v) after this.

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

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

    Permalink

    merge a set of keys.

    merge a set of keys.

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

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

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

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

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

    Permalink
    Definition Classes
    ConvertedStore → WritableStore
  24. def semigroup: Semigroup[V2]

    Permalink

    The semigroup equivalent to the merge operation of this store

    The semigroup equivalent to the merge operation of this store

    Definition Classes
    ConvertedMergeableStoreMergeable
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from MergeableStore[K2, V2]

Inherited from Mergeable[K2, V2]

Inherited from storehaus.ConvertedStore[K1, K2, V1, V2]

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