This module defines the riak_dt behaviour.
Required callback functions: new/0, value/1, value/2, update/3, update/4, parent_clock/2, merge/2, equal/2, to_binary/1, to_binary/2, from_binary/1, stats/1, stat/2, to_version/2.
actor() = term()
context() = riak_dt_vclock:vclock() | undefined
crdt() = term()
dot() = {actor(), pos_integer()}
| from_binary/1 | |
| to_binary/1 | When nested in a Map, some CRDTs need the logical clock of the top level Map to make context operations. |
from_binary(Binary::binary()) -> crdt()
to_binary(Term::crdt()) -> binary()
When nested in a Map, some CRDTs need the logical clock of the top level Map to make context operations. This callback provides the clock and the crdt, and if relevant, returns to crdt with the given clock as it's own.
Generated by EDoc