View Source shards_partition (shards v1.1.0)
Partition Owner.
The partition owner is agen_server
that creates and holds the ETS table associated with the partition.
Link to this section Summary
Functions
Equivalent to stop(Server, 5000).
Link to this section Functions
-spec apply_ets_fun(Pid :: pid(), EtsFun :: atom(), Args :: [term()]) -> term().
-spec compute(Key :: term(), Meta :: shards_meta:t()) -> non_neg_integer().
-spec pid(Tab :: shards:tab(), Partition :: non_neg_integer()) -> pid().
-spec retrieve_tab(Pid :: pid()) -> atom() | ets:tid().
-spec start_link(Tab :: atom() | ets:tid(), PartitionedTablePid :: pid(), PartitionIndex :: non_neg_integer(), Options :: [term()]) -> {ok, pid()} | ignore | {error, term()}.
Equivalent to stop(Server, 5000).
-spec stop(Pid :: pid(), Timeout :: timeout()) -> ok.
-spec tid(Tab :: shards:tab(), Partition :: non_neg_integer()) -> ets:tid().
-spec tid(Tab :: shards:tab(), Key :: term(), Meta :: shards_meta:t()) -> ets:tid().