Module riak_dt

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.

Data Types

actor()

actor() = term()

context()

context() = riak_dt_vclock:vclock() | undefined

crdt()

crdt() = term()

dot()

dot() = {actor(), pos_integer()}

Function Index

from_binary/1
to_binary/1When nested in a Map, some CRDTs need the logical clock of the top level Map to make context operations.

Function Details

from_binary/1

from_binary(Binary::binary()) -> crdt()

to_binary/1

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