MySQL 9.0.0
Source Code Documentation
bulk Namespace Reference

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...
 
bytefut_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...
 

Detailed Description

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.

Function Documentation

◆ flst_add_last()

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.

Parameters
[in]basePointer to base node of list
[in]nodeNode to add
[in]blocksvector of blocks containing the file list.

◆ flst_add_to_empty()

static void bulk::flst_add_to_empty ( flst_base_node_t base,
flst_node_t node 
)
static

Adds a node to an empty list.

Parameters
[in]basepointer to base node of empty list
[in]nodenode to add

◆ flst_get_first()

fil_addr_t bulk::flst_get_first ( const flst_base_node_t base)
inline

Gets list first node address.

Returns
file address

◆ flst_get_last()

fil_addr_t bulk::flst_get_last ( const flst_base_node_t base)
inline

Gets list last node address.

Parameters
[in]basePointer to base node
Returns
file address

◆ flst_get_next_addr()

fil_addr_t bulk::flst_get_next_addr ( const flst_node_t node)
inline

Gets list next node address.

Parameters
[in]nodePointer to node
Returns
file address

◆ flst_get_prev_addr()

fil_addr_t bulk::flst_get_prev_addr ( const flst_node_t node)
inline

Gets list prev node address.

Bulk version.

Parameters
[in]nodePointer to node
Returns
file address

◆ flst_init()

void bulk::flst_init ( flst_base_node_t base)
inline

Initializes a list base node.

Parameters
[in]basePointer to base node

◆ flst_insert_after()

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.

Parameters
[in]basePointer to base node of list
[in]node1Node to insert after
[in]node2Node to add
[in]blocksvector of blocks containing the file list.

◆ flst_read_addr()

fil_addr_t bulk::flst_read_addr ( const fil_faddr_t faddr)
inline

Reads a file address.

Returns
file address

◆ flst_remove()

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.

Parameters
[in]basethe base node of the list.
[in]node2the first node of the list that is to be removed.
[in]blocksall blocks containing the list nodes, necessary to carry out this operation.

◆ flst_write_addr()

void bulk::flst_write_addr ( fil_faddr_t faddr,
fil_addr_t  addr 
)
inline

Writes a file address.

Parameters
[in]faddrPointer to file faddress
[in]addrFile address

◆ fut_get_ptr()

byte * bulk::fut_get_ptr ( fil_addr_t  addr,
std::vector< buf_block_t * > &  blocks 
)

Gets a pointer to a file address.

Parameters
[in]addrFile address
[in]blocksvector of blocks containing the file list.
Returns
pointer to a location specified by addr.