mnesia_frag_hash
mnesia_frag_hash
Module
mnesia_frag_hash
Module summary
Defines mnesia_frag_hash callback behavior
Description
This module defines a callback behavior for user-defined hash functions of fragmented tables.
Which module that is selected to implement the mnesia_frag_hash
behavior for a particular fragmented table is specified together with the other frag_properties
. The hash_module
defines the module name. The hash_state
defines the initial hash state.
This module implements dynamic hashing, which is a kind of hashing that grows nicely when new fragments are added. It is well suited for scalable hash tables.
Exports
init_state(Tab, State) -> NewState | abort(Reason)
Types:
Tab = atom() State = term() NewState = term()