public class DeltaLWWCRDTMap extends DeltaBasedCRDT
| Modifier and Type | Field and Description |
|---|---|
static pt.unl.fct.di.novasys.network.ISerializer<DeltaLWWCRDTMap> |
serializer
A serializer that serializes the CRDT into (and from) a ByteBuf.
|
state| Constructor and Description |
|---|
DeltaLWWCRDTMap(ReplicaID replicaID) |
DeltaLWWCRDTMap(VVState state) |
| Modifier and Type | Method and Description |
|---|---|
GenericCRDT |
copy()
Creates a copy of the CRDT.
|
DeltaLWWCRDTMap |
generateDelta(VersionVector vv)
Calculates a delta from a given version for the current state
|
DeltaLWWCRDTMap |
generateDelta(VersionVector vv,
CRDTsTypes.FLAVOR flavor) |
GenericCRDT |
get(CRDTTypeKeyPair key) |
Iterator<Map.Entry<CRDTTypeKeyPair,GenericCRDT>> |
iterator() |
DeltaLWWCRDTMap |
mergeDelta(DeltaBasedCRDT crdt)
Applies a delta to the current state.
|
DeltaLWWCRDTMap |
put(CRDTTypeKeyPair key,
GenericCRDT crdt) |
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 pt.unl.fct.di.novasys.network.ISerializer<DeltaLWWCRDTMap> serializer
public DeltaLWWCRDTMap(ReplicaID replicaID)
public DeltaLWWCRDTMap(VVState state)
public DeltaLWWCRDTMap put(CRDTTypeKeyPair key, GenericCRDT crdt)
public GenericCRDT get(CRDTTypeKeyPair key)
public Iterator<Map.Entry<CRDTTypeKeyPair,GenericCRDT>> iterator()
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 DeltaLWWCRDTMap generateDelta(VersionVector vv)
DeltaCRDTgenerateDelta in interface DeltaCRDTgenerateDelta in class DeltaBasedCRDTvv - a version version to calculate the delta frompublic DeltaLWWCRDTMap generateDelta(VersionVector vv, CRDTsTypes.FLAVOR flavor)
public DeltaLWWCRDTMap mergeDelta(DeltaBasedCRDT crdt)
DeltaCRDTmergeDelta in interface DeltaCRDTmergeDelta in class DeltaBasedCRDTcrdt - a crdt representing the deltaCopyright © 2024. All rights reserved.