Behaviours: riak_dt.
References
lww_q() = timestamp
abstract datatype: lwwreg()
lwwreg_op() = {assign, term(), non_neg_integer()} | {assign, term()}
| equal/2 | Are two lwwreg()s structurally equal? This is not value/1 equality. |
| from_binary/1 | Decode binary lwwreg() |
| merge/2 | Merge two lwwreg()s to a single lwwreg(). |
| new/0 | Create a new, empty lwwreg() |
| parent_clock/2 | |
| stat/2 | |
| stats/1 | |
| to_binary/1 | Encode an effecient binary representation of an lwwreg() |
| to_binary/2 | |
| to_version/2 | |
| update/3 | Assign a Value to the lwwreg()
associating the update with time TS |
| update/4 | |
| value/1 | The single total value of a gcounter(). |
| value/2 | query for this lwwreg(). |
Are two lwwreg()s structurally equal? This is not value/1 equality.
Two registers might represent the value armchair, and not be equal/2. Equality here is
that both registers contain the same value and timestamp.
from_binary(B::binary()) -> {ok, lwwreg()} | {error, unsupported_version, Vers::pos_integer()} | {error, invalid_binary}
Decode binary lwwreg()
Merge two lwwreg()s to a single lwwreg(). This is the Least Upper Bound
function described in the literature.
new() -> lwwreg()
Create a new, empty lwwreg()
parent_clock(Clock::riak_dt_vclock:vclock(), Reg::lwwreg()) -> lwwreg()
stat(X1::atom(), LWW::lwwreg()) -> number() | undefined
stats(LWW::lwwreg()) -> [{atom(), number()}]
to_binary(LWWReg::lwwreg()) -> binary()
Encode an effecient binary representation of an lwwreg()
to_binary(Vers::pos_integer(), LWW::lwwreg()) -> {ok, binary()} | {error, unsupported_version, Vers::pos_integer()}
update(X1::lwwreg_op(), Actor::term(), OldLWWReg::lwwreg()) -> {ok, lwwreg()}
Assign a Value to the lwwreg()
associating the update with time TS
update(Op, Actor, Reg, Ctx) -> any()
value(X1::lwwreg()) -> term()
The single total value of a gcounter().
query for this lwwreg().
timestamp is the only query option.
Generated by EDoc