Module shards_partition

Partition Owner.

Behaviours: gen_server.

Description

Partition Owner.

The partition owner is a gen_server that creates and holds the ETS table associated with the partition.

Function Index

apply_ets_fun/3
compute/2
pid/2
retrieve_tab/1
start_link/4
stop/1Equivalent to stop(Server, 5000).
stop/2
tid/2
tid/3

Function Details

apply_ets_fun/3

apply_ets_fun(Pid::pid(), EtsFun::atom(), Args::[term()]) -> term()

compute/2

compute(Key::term(), Meta::shards_meta:t()) -> non_neg_integer()

pid/2

pid(Tab::shards:tab(), Partition::non_neg_integer()) -> pid()

retrieve_tab/1

retrieve_tab(Pid::pid()) -> atom() | ets:tid()

start_link/4

start_link(Tab::atom() | ets:tid(), PartitionedTablePid::pid(), PartitionIndex::non_neg_integer(), Options::[term()]) -> {ok, pid()} | ignore | {error, term()}

stop/1

stop(Pid) -> any()

Equivalent to stop(Server, 5000).

stop/2

stop(Pid::pid(), Timeout::timeout()) -> ok

tid/2

tid(Tab::shards:tab(), Partition::non_neg_integer()) -> ets:tid()

tid/3

tid(Tab::shards:tab(), Key::term(), Meta::shards_meta:t()) -> ets:tid()


Generated by EDoc