Module riakc_hll

Behaviours: riakc_datatype.

Data Types

hll_op()

hll_op() = {add_all, [binary()]}

riakc_hll()

abstract datatype: riakc_hll()

Function Index

add_element/2Adds an element to the hll(set).
add_elements/2Adds elements to the hll(set).
card/1Same as value, but better for users.
is_type/1Determines whether the passed term is a hll type.
new/0Creates a new, empty hll type.
new/1Creates a new hll.
new/2Creates a new hll.
to_op/1Extracts an operation from the hll that can be encoded into an update request.
type/0Returns the symbolic name of this type.
value/1Returns the.

Function Details

add_element/2

add_element(Elem::binary(), Hll::riakc_hll()) -> riakc_hll()

Adds an element to the hll(set).

add_elements/2

add_elements(Elems::[binary()], Hll::riakc_hll()) -> riakc_hll()

Adds elements to the hll(set).

card/1

card(Hll::riakc_hll()) -> number()

Same as value, but better for users.

is_type/1

is_type(T::term()) -> boolean()

Determines whether the passed term is a hll type.

new/0

new() -> riakc_hll()

Creates a new, empty hll type.

new/1

new(Context::riakc_datatype:context()) -> riakc_hll()

Creates a new hll

new/2

new(Value::number(), Context::riakc_datatype:context()) -> riakc_hll()

Creates a new hll

to_op/1

to_op(Hll::riakc_hll()) -> riakc_datatype:update(hll_op())

Extracts an operation from the hll that can be encoded into an update request.

type/0

type() -> atom()

Returns the symbolic name of this type.

value/1

value(Hll::riakc_hll()) -> number()

Returns the


Generated by EDoc, Dec 16 2016, 16:38:08.