L W W Map
A delta-based CRDT map implementing last writer wins (LWW) policy.
Each entry behaves like a LWWRegister: only the last written value is retained.
When merging, for each key, only the value associated with the greatest timestamp is retained. A deletion is represented as a null value and handled the same way.
Its JSON serialization respects the following schema:
{
"type": "LWWMap",
"metadata": {
"entries": {
// $key is a string
(( "$key": Timestamp.toJson(), )*( "$key": Timestamp.toJson() ))?
}
}
// $key is a string and $value can be Boolean, double, integer or string
( , "$key": "$value" )*
}
Constructors
Types
Functions
deleteBoolean
Link copied to clipboard
deleteDouble
Link copied to clipboard
deleteString
Link copied to clipboard
generateDelta
Link copied to clipboard
getBoolean
Link copied to clipboard
iteratorBoolean
Link copied to clipboard
iteratorDouble
Link copied to clipboard
iteratorInt
Link copied to clipboard
iteratorString
Link copied to clipboard
put
Link copied to clipboard