public class ORSet$
extends java.lang.Object
implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static ORSet$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ORSet$() |
Modifier and Type | Method and Description |
---|---|
ORSet<java.lang.Object> |
apply() |
<A> ORSet<A> |
create()
Java API
|
<A> ORSet<A> |
empty() |
<A> scala.collection.immutable.Map<A,VersionVector> |
mergeCommonKeys(scala.collection.immutable.Set<A> commonKeys,
ORSet<A> lhs,
ORSet<A> rhs)
INTERNAL API
|
<A> scala.collection.immutable.Map<A,VersionVector> |
mergeDisjointKeys(scala.collection.immutable.Set<A> keys,
scala.collection.immutable.Map<A,VersionVector> elementsMap,
VersionVector vvector,
scala.collection.immutable.Map<A,VersionVector> accumulator)
INTERNAL API
|
VersionVector |
subtractDots(VersionVector dot,
VersionVector vvector)
INTERNAL API
Subtract the
vvector from the dot . |
<A> scala.Option<scala.collection.immutable.Set<A>> |
unapply(ORSet<A> s)
Extract the
ORSet.elements() . |
scala.Option<scala.collection.immutable.Set<java.lang.Object>> |
unapply(ReplicatedData a)
Extract the
ORSet.elements() of an ORSet . |
public static final ORSet$ MODULE$
public <A> ORSet<A> empty()
public ORSet<java.lang.Object> apply()
public <A> ORSet<A> create()
public <A> scala.Option<scala.collection.immutable.Set<A>> unapply(ORSet<A> s)
ORSet.elements()
.s
- (undocumented)public scala.Option<scala.collection.immutable.Set<java.lang.Object>> unapply(ReplicatedData a)
ORSet.elements()
of an ORSet
.a
- (undocumented)public VersionVector subtractDots(VersionVector dot, VersionVector vvector)
vvector
from the dot
.
What this means is that any (node, version) pair in
dot
that is <= an entry in vvector
is removed from dot
.
Example [{a, 3}, {b, 2}, {d, 14}, {g, 22}] -
[{a, 4}, {b, 1}, {c, 1}, {d, 14}, {e, 5}, {f, 2}] =
[{b, 2}, {g, 22}]dot
- (undocumented)vvector
- (undocumented)public <A> scala.collection.immutable.Map<A,VersionVector> mergeCommonKeys(scala.collection.immutable.Set<A> commonKeys, ORSet<A> lhs, ORSet<A> rhs)
commonKeys
- (undocumented)lhs
- (undocumented)rhs
- (undocumented)ORSet.merge(akka.cluster.ddata.ORSet<A>)
public <A> scala.collection.immutable.Map<A,VersionVector> mergeDisjointKeys(scala.collection.immutable.Set<A> keys, scala.collection.immutable.Map<A,VersionVector> elementsMap, VersionVector vvector, scala.collection.immutable.Map<A,VersionVector> accumulator)
keys
- (undocumented)elementsMap
- (undocumented)vvector
- (undocumented)accumulator
- (undocumented)ORSet.merge(akka.cluster.ddata.ORSet<A>)