Module riak_core_ring_util

Function Index

assign/2Forcibly assign a partition to a specific node.
check_ring/0Check the local ring for any preflists that do not satisfy n_val.
check_ring/1
check_ring/2Check a ring for any preflists that do not satisfy n_val.
hash_is_partition_boundary/2For user-facing tools, indicate whether a specified hash value is a valid "boundary" value (first hash in some partition).
hash_to_partition_id/2Map a key hash (as binary or integer) to a partition ID [0, ring_size).
partition_id_to_hash/2Identify the first key hash (integer form) in a partition ID [0, ring_size).

Function Details

assign/2

assign(Partition, ToNode) -> any()

Forcibly assign a partition to a specific node

check_ring/0

check_ring() -> any()

Check the local ring for any preflists that do not satisfy n_val

check_ring/1

check_ring(Ring) -> any()

check_ring/2

check_ring(Ring, Nval) -> any()

Check a ring for any preflists that do not satisfy n_val

hash_is_partition_boundary/2

hash_is_partition_boundary(CHashKey::chash:index() | chash:index_as_int(), RingSize::pos_integer()) -> boolean()

For user-facing tools, indicate whether a specified hash value is a valid "boundary" value (first hash in some partition)

hash_to_partition_id/2

hash_to_partition_id(CHashKey::chash:index() | chash:index_as_int(), RingSize::riak_core_ring:ring_size()) -> riak_core_ring:partition_id()

Map a key hash (as binary or integer) to a partition ID [0, ring_size)

partition_id_to_hash/2

partition_id_to_hash(Id::riak_core_ring:partition_id(), RingSize::pos_integer()) -> chash:index_as_int()

Identify the first key hash (integer form) in a partition ID [0, ring_size)


Generated by EDoc