MySQL 9.1.0
Source Code Documentation
|
Used for bulk load of data. More...
Functions | |
static void | flst_add_to_empty (flst_base_node_t *base, flst_node_t *node) |
Adds a node to an empty list. More... | |
void | flst_remove (flst_base_node_t *base, flst_node_t *node2, std::vector< buf_block_t * > &blocks) |
Bulk load version. More... | |
byte * | fut_get_ptr (fil_addr_t addr, std::vector< buf_block_t * > &blocks) |
Gets a pointer to a file address. More... | |
void | flst_add_last (flst_base_node_t *base, flst_node_t *node, std::vector< buf_block_t * > &blocks) |
Adds a node as the last node in a list. More... | |
void | flst_insert_after (flst_base_node_t *base, flst_node_t *node1, flst_node_t *node2, std::vector< buf_block_t * > &blocks) |
Inserts a node after another in a list. More... | |
void | flst_init (flst_base_node_t *base) |
Initializes a list base node. More... | |
void | flst_write_addr (fil_faddr_t *faddr, fil_addr_t addr) |
Writes a file address. More... | |
fil_addr_t | flst_get_first (const flst_base_node_t *base) |
Gets list first node address. More... | |
fil_addr_t | flst_get_prev_addr (const flst_node_t *node) |
Gets list prev node address. More... | |
fil_addr_t | flst_get_next_addr (const flst_node_t *node) |
Gets list next node address. More... | |
fil_addr_t | flst_read_addr (const fil_faddr_t *faddr) |
Reads a file address. More... | |
fil_addr_t | flst_get_last (const flst_base_node_t *base) |
Gets list last node address. More... | |
Used for bulk load of data.
To avoid mistakes, an explicit namespace is used to encapsulate functions and objects that operate without generating redo log records and without using mini transactions.
void bulk::flst_add_last | ( | flst_base_node_t * | base, |
flst_node_t * | node, | ||
std::vector< buf_block_t * > & | blocks | ||
) |
Adds a node as the last node in a list.
[in] | base | Pointer to base node of list |
[in] | node | Node to add |
[in] | blocks | vector of blocks containing the file list. |
|
static |
Adds a node to an empty list.
[in] | base | pointer to base node of empty list |
[in] | node | node to add |
|
inline |
Gets list first node address.
|
inline |
Gets list last node address.
[in] | base | Pointer to base node |
|
inline |
Gets list next node address.
[in] | node | Pointer to node |
|
inline |
Gets list prev node address.
Bulk version.
[in] | node | Pointer to node |
|
inline |
Initializes a list base node.
[in] | base | Pointer to base node |
void bulk::flst_insert_after | ( | flst_base_node_t * | base, |
flst_node_t * | node1, | ||
flst_node_t * | node2, | ||
std::vector< buf_block_t * > & | blocks | ||
) |
Inserts a node after another in a list.
This is the bulk version.
[in] | base | Pointer to base node of list |
[in] | node1 | Node to insert after |
[in] | node2 | Node to add |
[in] | blocks | vector of blocks containing the file list. |
|
inline |
Reads a file address.
void bulk::flst_remove | ( | flst_base_node_t * | base, |
flst_node_t * | node2, | ||
std::vector< buf_block_t * > & | blocks | ||
) |
Bulk load version.
Remove the node from the given list.
[in] | base | the base node of the list. |
[in] | node2 | the first node of the list that is to be removed. |
[in] | blocks | all blocks containing the list nodes, necessary to carry out this operation. |
|
inline |
Writes a file address.
[in] | faddr | Pointer to file faddress |
[in] | addr | File address |
byte * bulk::fut_get_ptr | ( | fil_addr_t | addr, |
std::vector< buf_block_t * > & | blocks | ||
) |
Gets a pointer to a file address.
[in] | addr | File address |
[in] | blocks | vector of blocks containing the file list. |