com.twitter.storehaus.algebra

MergeableJMapLongStore

class MergeableJMapLongStore[K] extends MergeableJMapStore[K, Long]

MergeableStore instance that is backed by a ConcurrentHashMap This class is thread safe with a locking merge operation and thread safe put/get operations provided by the underlying ConcurrentHashMap There is no multi operation optimization so all multi operations use the default Store implementation.

This class is ideal for local testing of code that interacts with a MergeableStore[String,Long] such as RedisLongStore without the need to hit a remote database. Can also be used for data processing where you don't care about persistence beyond the running process.

Linear Supertypes
MergeableJMapStore[K, Long], MergeableStore[K, Long], Store[K, Long], ReadableStore[K, Long], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MergeableJMapLongStore
  2. MergeableJMapStore
  3. MergeableStore
  4. Store
  5. ReadableStore
  6. Closable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MergeableJMapLongStore()

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(time: Time): Future[Unit]

    Definition Classes
    ReadableStore → Closable
  9. final def close(): Future[Unit]

    Definition Classes
    Closable
  10. val dataContainer: ConcurrentHashMap[K, Long]

    Attributes
    protected
    Definition Classes
    MergeableJMapStore
  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(k: K): Future[Option[Long]]

    Definition Classes
    MergeableJMapStore → 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 merge(kv: (K, Long)): Future[Option[Long]]

    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
    MergeableJMapStoreMergeableStore
  19. def multiGet[K1 <: K](ks: Set[K1]): Map[K1, Future[Option[Long]]]

    Definition Classes
    ReadableStore
  20. def multiMerge[K1 <: K](kvs: Map[K1, Long]): Map[K1, Future[Option[Long]]]

    merge a set of keys.

    merge a set of keys.

    Definition Classes
    MergeableStore
  21. def multiPut[K1 <: K](kvs: Map[K1, Option[Long]]): Map[K1, Future[Unit]]

    Definition Classes
    Store
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def put(kv: (K, Option[Long])): Future[Unit]

    Definition Classes
    MergeableJMapStore → Store
  26. implicit val semigroup: Semigroup[Long]

    The semigroup equivalent to the merge operation of this store

    The semigroup equivalent to the merge operation of this store

    Definition Classes
    MergeableJMapStoreMergeableStore
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MergeableJMapStore[K, Long]

Inherited from MergeableStore[K, Long]

Inherited from Store[K, Long]

Inherited from ReadableStore[K, Long]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped