Class/Object

com.rbmhtechnology.eventuate.crdt

ORCart

Related Docs: object ORCart | package crdt

Permalink

case class ORCart[A](orSet: ORSet[ORCartEntry[A]] = ORSet[ORCartEntry[A]]()) extends CRDTFormat with Product with Serializable

Operation-based OR-Cart CRDT with an ORSet-based implementation. Versioned entry values are of type ORCartEntry and are uniquely identified with vector timestamps.

A

Key type.

orSet

Backing ORSet.

See also

ORCartEntry

A comprehensive study of Convergent and Commutative Replicated Data Types, specification 21.

Linear Supertypes
Product, Equals, CRDTFormat, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ORCart
  2. Product
  3. Equals
  4. CRDTFormat
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ORCart(orSet: ORSet[ORCartEntry[A]] = ORSet[ORCartEntry[A]]())

    Permalink

    orSet

    Backing ORSet.

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. def add(key: A, quantity: Int, timestamp: VectorTime): ORCart[A]

    Permalink

    Adds the given quantity of key, uniquely identified by timestamp, and returns an updated ORCart.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  14. val orSet: ORSet[ORCartEntry[A]]

    Permalink

    Backing ORSet.

  15. def prepareRemove(key: A): Set[VectorTime]

    Permalink

    Collects all timestamps of given key.

  16. def remove(timestamps: Set[VectorTime]): ORCart[A]

    Permalink

    Removes all ORCartEntrys identified by given timestamps and returns an updated ORCart.

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def value: Map[A, Int]

    Permalink

    Returns the quantitys of the contained keys, reducing multiple ORCartEntrys with the same key by adding their quantitys.

  19. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from CRDTFormat

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped