hash_range() = range_wrap() | range_nowrap()
partition() = chash:index_as_int()
range_nowrap() = {nowrap, GTE::binary(), LTE::binary()}
range_wrap() = {wrap, GTE::binary(), LTE::binary()}
| gen_filter/5 | Generate a Filter fun to use during partition repair. |
| gen_range/3 | Generate the hash Range for a given Target partition and
NVal. |
| gen_range_fun/2 | Generate the function that will return the hash range for a
given Bucket. |
| gen_range_map/3 | Generate the map from bucket B to hash Range that a key
must fall into to be included for repair on the Target
partition. |
gen_filter(Target, Ring, NValMap, DefaultN, InfoFun) -> any()
Generate a Filter fun to use during partition repair.
Target - Partition under repair.
Ring - The ring to use for repair.
NValMap - A map from bucket to n_val, only custom buckets
have entries, everything else uses default.
DefaultN - The default n_val.
InfoFun - A function which returns information about the key
used to determine if it should be repaired or not.
gen_range(Target::partition(), Ring::riak_core_ring:riak_core_ring(), NVal::integer()) -> hash_range()
Generate the hash Range for a given Target partition and
NVal.
gen_range_fun(RangeMap::list(), Default::hash_range()) -> function()
Generate the function that will return the hash range for a
given Bucket.
gen_range_map(Target::partition(), Ring::riak_core_ring:riak_core_ring(), NValMap::list()) -> [{Bucket::binary(), Range::hash_range()}]
Generate the map from bucket B to hash Range that a key
must fall into to be included for repair on the Target
partition.
Generated by EDoc