public class DeltaORMap extends DeltaCausalBasedCRDT
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_SPLITTER |
static pt.unl.fct.di.novasys.network.ISerializer<DeltaORMap> |
serializer
A serializer that serializes the CRDT into (and from) a ByteBuf.
|
state| Constructor and Description |
|---|
DeltaORMap(CausalContext state) |
DeltaORMap(CausalContext state,
Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT> pair) |
DeltaORMap(ReplicaID replicaID) |
DeltaORMap(ReplicaID replicaID,
Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT> pair) |
| Modifier and Type | Method and Description |
|---|---|
GenericCRDT |
copy()
Creates a copy of the CRDT.
|
DeltaCausalCRDT |
deepGet(CRDTTypeKeyPair key) |
Iterator<Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT>> |
deepIterator(String composedKey) |
DeltaCausalCRDT |
deepPut(CRDTTypeKeyPair key,
DeltaCausalCRDT crdt) |
DeltaORMap |
generateDelta(VersionVector vv)
Calculates a delta from a given version for the current state
|
DeltaCausalCRDT |
get(CRDTTypeKeyPair key) |
CausalContext |
getCausalContext() |
Iterator<Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT>> |
iterator() |
DeltaORMap |
mergeDelta(DeltaBasedCRDT delta)
Applies a delta to the current state.
|
DeltaORMap |
put(CRDTTypeKeyPair key,
DeltaCausalCRDT crdt) |
DeltaORMap |
remove(CRDTTypeKeyPair key) |
DeltaORMap |
reset() |
void |
serialize(io.netty.buffer.ByteBuf in)
Serializes the CRDT into a ByteBuf
|
getReplicaID, getReplicaStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeDataType, getTypepublic static final String KEY_SPLITTER
public static pt.unl.fct.di.novasys.network.ISerializer<DeltaORMap> serializer
public DeltaORMap(CausalContext state)
public DeltaORMap(ReplicaID replicaID)
public DeltaORMap(ReplicaID replicaID, Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT> pair)
public DeltaORMap(CausalContext state, Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT> pair)
public DeltaCausalCRDT get(CRDTTypeKeyPair key)
public DeltaCausalCRDT deepGet(CRDTTypeKeyPair key)
public DeltaCausalCRDT deepPut(CRDTTypeKeyPair key, DeltaCausalCRDT crdt)
public Iterator<Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT>> deepIterator(String composedKey)
public DeltaORMap put(CRDTTypeKeyPair key, DeltaCausalCRDT crdt)
public DeltaORMap remove(CRDTTypeKeyPair key)
public Iterator<Map.Entry<CRDTTypeKeyPair,DeltaCausalCRDT>> iterator()
public DeltaORMap reset()
public CausalContext getCausalContext()
public GenericCRDT copy()
GenericCRDTpublic void serialize(io.netty.buffer.ByteBuf in)
throws IOException
GenericCRDTin - ByteBuf to serialize the CRDT toIOException - if an error occurs while serializingpublic DeltaORMap generateDelta(VersionVector vv)
DeltaCRDTgenerateDelta in interface DeltaCRDTgenerateDelta in class DeltaCausalBasedCRDTvv - a version version to calculate the delta frompublic DeltaORMap mergeDelta(DeltaBasedCRDT delta)
DeltaCRDTmergeDelta in interface DeltaCRDTmergeDelta in class DeltaCausalBasedCRDTdelta - a crdt representing the deltaCopyright © 2024. All rights reserved.