final case class ManyVersionVector(versions: TreeMap[UniqueAddress, Long]) extends VersionVector with Product with Serializable
- Alphabetic
- By Inheritance
- ManyVersionVector
- Product
- Equals
- VersionVector
- RemovedNodePruning
- ReplicatedDataSerialization
- Serializable
- ReplicatedData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ManyVersionVector(versions: TreeMap[UniqueAddress, Long])
Type Members
- type T = VersionVector
The type of the concrete implementation, e.g.
The type of the concrete implementation, e.g.
GSet[A]
. To be specified by subclass.- Definition Classes
- VersionVector → ReplicatedData
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toany2stringadd[ManyVersionVector] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ManyVersionVector, B)
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toArrowAssoc[ManyVersionVector] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- def :+(node: SelfUniqueAddress): VersionVector
Increment the version for the node passed as argument.
Increment the version for the node passed as argument. Returns a new VersionVector.
- Definition Classes
- VersionVector
- def <(that: VersionVector): Boolean
Returns true if
this
is beforethat
else false.Returns true if
this
is beforethat
else false.- Definition Classes
- VersionVector
- def <>(that: VersionVector): Boolean
Returns true if
this
andthat
are concurrent else false.Returns true if
this
andthat
are concurrent else false.- Definition Classes
- VersionVector
- def ==(that: VersionVector): Boolean
Returns true if this VersionVector has the same history as the 'that' VersionVector else false.
Returns true if this VersionVector has the same history as the 'that' VersionVector else false.
- Definition Classes
- VersionVector
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: VersionVector): Boolean
Returns true if
this
is afterthat
else false.Returns true if
this
is afterthat
else false.- Definition Classes
- VersionVector
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def compareTo(that: VersionVector): Ordering
Compare two version vectors.
Compare two version vectors. The outcome will be one of the following:
1. Version 1 is SAME (==) as Version 2 iff for all i c1(i) == c2(i) 2. Version 1 is BEFORE (<) Version 2 iff for all i c1(i) <= c2(i) and there exist a j such that c1(j) < c2(j) 3. Version 1 is AFTER (>) Version 2 iff for all i c1(i) >= c2(i) and there exist a j such that c1(j) > c2(j). 4. Version 1 is CONCURRENT (<>) to Version 2 otherwise.
- Definition Classes
- VersionVector
- def ensuring(cond: (ManyVersionVector) => Boolean, msg: => Any): ManyVersionVector
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toEnsuring[ManyVersionVector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ManyVersionVector) => Boolean): ManyVersionVector
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toEnsuring[ManyVersionVector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ManyVersionVector
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toEnsuring[ManyVersionVector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ManyVersionVector
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toEnsuring[ManyVersionVector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def increment(node: SelfUniqueAddress): VersionVector
Increment the version for the node passed as argument.
Increment the version for the node passed as argument. Returns a new VersionVector.
- Definition Classes
- VersionVector
- def isEmpty: Boolean
- Definition Classes
- ManyVersionVector → VersionVector
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(that: VersionVector): VersionVector
Merges this VersionVector with another VersionVector.
Merges this VersionVector with another VersionVector. E.g. merges its versioned history.
- Definition Classes
- ManyVersionVector → VersionVector → ReplicatedData
- def modifiedByNodes: Set[UniqueAddress]
The nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster.
The nodes that have changed the state for this data and would need pruning when such node is no longer part of the cluster.
- Definition Classes
- ManyVersionVector → RemovedNodePruning
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def needPruningFrom(removedNode: UniqueAddress): Boolean
Does it have any state changes from a specific node, which has been removed from the cluster.
Does it have any state changes from a specific node, which has been removed from the cluster.
- Definition Classes
- ManyVersionVector → VersionVector → RemovedNodePruning
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def prune(removedNode: UniqueAddress, collapseInto: UniqueAddress): VersionVector
When the
removed
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.When the
removed
node has been removed from the cluster the state changes from that node will be pruned by collapsing the data entries to another node.- Definition Classes
- ManyVersionVector → VersionVector → RemovedNodePruning
- def pruningCleanup(removedNode: UniqueAddress): VersionVector
Remove data entries from a node that has been removed from the cluster and already been pruned.
Remove data entries from a node that has been removed from the cluster and already been pruned.
- Definition Classes
- ManyVersionVector → VersionVector → RemovedNodePruning
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ManyVersionVector → AnyRef → Any
- val versions: TreeMap[UniqueAddress, Long]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toStringFormat[ManyVersionVector] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ManyVersionVector, B)
- Implicit
- This member is added by an implicit conversion from ManyVersionVector toArrowAssoc[ManyVersionVector] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.