Behaviours: riak_dt.
actor() = riak_dt:actor()
binary_orset() = binary()
A binary that from_binary/1 will operate on.
member() = term()
abstract datatype: orset()
orset_op() = {add, member()} | {remove, member()} | {add_all, [member()]} | {remove_all, [member()]} | {update, [orset_op()]}
| equal/2 | |
| from_binary/1 | |
| merge/2 | |
| new/0 | |
| parent_clock/2 | |
| precondition_context/1 | the precondition context is a fragment of the CRDT that operations with pre-conditions can be applied too. |
| stat/2 | |
| stats/1 | |
| to_binary/1 | |
| to_binary/2 | |
| to_version/2 | |
| update/3 | |
| update/4 | |
| value/1 | |
| value/2 |
from_binary(B::binary_orset()) -> {ok, orset()} | {error, unsupported_version, Vers::pos_integer()} | {error, invalid_binary}
new() -> orset()
parent_clock(Clock::riak_dt_vclock:vclock(), ORSet::orset()) -> orset()
the precondition context is a fragment of the CRDT that operations with pre-conditions can be applied too. In the case of OR-Sets this is the set of adds observed. The system can then apply a remove to this context and merge it with a replica. Especially useful for hybrid op/state systems where the context of an operation is needed at a replica without sending the entire state to the client.
stat(X1::atom(), ORSet::orset()) -> number() | undefined
stats(ORSet::orset()) -> [{atom(), number()}]
to_binary(ORSet::orset()) -> binary_orset()
to_binary(Vers::pos_integer(), Set::orset()) -> {ok, binary_orset()} | {error, unsupported_version, Vers::pos_integer()}
update(X1::orset_op(), Actor::actor(), ORDict::orset()) -> {ok, orset()} | {error, {precondition, {not_present, member()}}}
update(Op::orset_op(), Actor::actor(), ORDict::orset(), Ctx::riak_dt:context()) -> {ok, orset()} | {error, {precondition, {not_present, member()}}}
value(X1::any(), ORSet::orset()) -> [member()] | orddict:orddict()
Generated by EDoc