📄 h_hash.so
字号:
m4_comment([$Id: h_hash.so,v 10.12 2000/07/04 18:28:27 bostic Exp $])m4_ref_title(Access Methods, Specifying a database hash, specifying a database @hash, am_conf/h_ffactor, am_conf/h_nelem)m4_p([dnlThe database hash determines in which bucket a particular key will reside.The goal of hashing keys is to distribute keys equally across the databasepages, therefore it is important that the hash function work well withthe specified keys so that the resulting bucket usage is relativelyuniform. A hash function that does not work well can effectively turninto a sequential list.])m4_p([dnlNo hash performs equally well on all possible data sets. It is possiblethat applications may find that the default hash function performs poorlywith a particular set of keys. The distribution resulting from the hashfunction can be checked using m4_ref(db_stat) utility. By comparing thenumber of hash buckets and the number of keys, one can decide if the entriesare hashing in a well-distributed manner.])m4_p([dnlThe hash function for the hash table can be specified by calling them4_refT(dbh_set_h_hash). If no hash function is specified, a defaultfunction will be used. Any application-specified hash function musttake a reference to a m4_ref(Db) object, a pointer to a byte string andits length, as arguments and return an unsigned, 32-bit hash value.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -