Marks all records as deleted.
Note: by default this doesn't actually delete the records since the deletion needs to be propagated when merging with other CRDTs.
Set purge to true to clear the records. Useful for testing or to reset a store.
Merges two CRDTs and updates record and canonical clocks accordingly.
Use keyDecoder to convert non-string keys.
Use valueDecoder to convert non-native value types.
See also merge().
Stores record without updating the HLC.
Meant for subclassing, clients should use put() instead.
Make sure to call refreshCanonicalTime() if using this method directly.
Stores records without updating the HLC.
Meant for subclassing, clients should use putAll() instead.
Make sure to call refreshCanonicalTime() if using this method directly.
Retrieves CRDT map including HLCs. Useful for merging with other CRDTs.
Use modifiedSince to get only the most recently modified records.
See also toJson().
Iterates through the CRDT to find the highest HLC timestamp.
Used to seed the Canonical Time.
Should be overridden if the implementation can do it more efficiently.
Outputs the contents of this CRDT in Json format.
Use modifiedSince to encode only the most recently modified records.
Use keyEncoder to convert non-string keys.
Use valueEncoder to convert non-native value types.