Module riak_core_repair

Data Types

hash_range()

hash_range() = range_wrap() | range_nowrap()

partition()

partition() = chash:index_as_int()

range_nowrap()

range_nowrap() = {nowrap, GTE::binary(), LTE::binary()}

range_wrap()

range_wrap() = {wrap, GTE::binary(), LTE::binary()}

Function Index

gen_filter/5Generate a Filter fun to use during partition repair.
gen_range/3Generate the hash Range for a given Target partition and NVal.
gen_range_fun/2Generate the function that will return the hash range for a given Bucket.
gen_range_map/3Generate the map from bucket B to hash Range that a key must fall into to be included for repair on the Target partition.

Function Details

gen_filter/5

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/3

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.

Note: The type of NVal should be pos_integer() but dialyzer says success typing is integer() and I don't have time for games.

gen_range_fun/2

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/3

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