Class ORSet$


  • public class ORSet$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final ORSet$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ORSet$

        public ORSet$()
    • Method Detail

      • create

        public <A> ORSet<A> create​(ReplicaId originReplica)
        Java API
      • unapply

        public <A> scala.Option<scala.collection.immutable.Set<A>> unapply​(ORSet<A> s)
        Extract the ORSet.elements().
      • subtractDots

        public VersionVector subtractDots​(VersionVector dot,
                                          VersionVector vvector)
        INTERNAL API Subtract the vvector from the dot. What this means is that any (dc, version) pair in dot that is &lt;= 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}]
      • mergeCommonKeys

        public <A> scala.collection.immutable.Map<A,​VersionVector> mergeCommonKeys​(scala.collection.immutable.Set<A> commonKeys,
                                                                                         ORSet<A> lhs,
                                                                                         ORSet<A> rhs)
        INTERNAL API
        See Also:
        ORSet#merge
      • mergeDisjointKeys

        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)
        INTERNAL API
        See Also:
        ORSet#merge