MySQL 8.4.2
Source Code Documentation
|
The hash table with external chains. More...
Functions | |
void | ha_delete_hash_node (hash_table_t *table, ha_node_t *del_node) |
Deletes a hash node. More... | |
static const rec_t * | ha_node_get_data (const ha_node_t *node) |
Gets a hash node data. More... | |
static void | ha_node_set_data (ha_node_t *node, buf_block_t *block, const rec_t *data) |
Sets hash node data. More... | |
static ha_node_t * | ha_chain_get_next (const ha_node_t *node) |
Gets the next node in a hash chain. More... | |
static ha_node_t * | ha_chain_get_first (hash_table_t *table, uint64_t hash_value) |
Gets the first node in a hash chain. More... | |
static const rec_t * | ha_search_and_get_data (hash_table_t *table, uint64_t hash_value) |
Looks for an element in a hash table. More... | |
static ha_node_t * | ha_search_with_data (hash_table_t *table, uint64_t hash_value, const rec_t *data) |
Looks for an element when we know the pointer to the data. More... | |
static bool | ha_search_and_delete_if_found (hash_table_t *table, uint64_t hash_value, const rec_t *data) |
Looks for an element when we know the pointer to the data, and deletes it from the hash table, if found. More... | |
The hash table with external chains.
Created 8/18/1994 Heikki Tuuri
|
inlinestatic |
Gets the first node in a hash chain.
table | in: hash table |
hash_value | in: hash value determining the chain |
Gets the next node in a hash chain.
node | in: hash chain node |
void ha_delete_hash_node | ( | hash_table_t * | table, |
ha_node_t * | del_node | ||
) |
Deletes a hash node.
in: node to be deleted
table | in: hash table |
del_node | in: node to be deleted |
Gets a hash node data.
node | in: hash chain node |
|
inlinestatic |
Sets hash node data.
[in] | node | chain node |
[in] | block | buffer block containing the data |
[in] | data | pointer to the data |
|
inlinestatic |
Looks for an element when we know the pointer to the data, and deletes it from the hash table, if found.
table | in: hash table |
hash_value | in: hashed value of the searched data |
data | in: pointer to the data |
|
inlinestatic |
Looks for an element in a hash table.
table | in: hash table |
hash_value | in: hashed value of the searched data |
|
inlinestatic |
Looks for an element when we know the pointer to the data.
table | in: hash table |
hash_value | in: hashed value of the searched data |
data | in: pointer to the data |