MySQL 8.3.0
Source Code Documentation
lob::plist_base_node_t Struct Reference

The base node of page list. More...

#include <lob0impl.h>

Public Member Functions

 plist_base_node_t (byte *frame, byte *base, mtr_t *mtr)
 
void init ()
 
void remove (plist_node_t &node)
 
void push_front (plist_node_t &node)
 
void insert_after (plist_node_t &node1, plist_node_t &node2)
 Insert node2 after node1. More...
 
void insert_before (plist_node_t &node3, plist_node_t &node2)
 Insert node2 before node3. More...
 
void add_to_empty (plist_node_t &node)
 
void push_back (plist_node_t &node)
 
bool empty () const
 
ulint get_len () const
 
paddr_t get_first () const
 
plist_node_t get_first_node () const
 
paddr_t get_last () const
 
plist_node_t get_last_node () const
 
void set_len (ulint len)
 
void incr_len ()
 
void decr_len ()
 
void set_first (paddr_t addr)
 
void set_last (paddr_t addr)
 
plist_node_t get_node (paddr_t addr)
 
paddr_t addr () const
 
std::ostream & print (std::ostream &out) const
 
std::ostream & print_list (std::ostream &out) const
 
bool validate () const
 Validate the page list. More...
 

Public Attributes

bytem_frame
 
bytem_base
 
mtr_tm_mtr
 

Static Public Attributes

static const ulint OFFSET_LEN = 0
 The offset where the length of the page list is stored. More...
 
static const ulint OFFSET_FIRST = 4
 The offset where the first node is located. More...
 
static const ulint OFFSET_LAST = 6
 The offset where the last node is located. More...
 
static const ulint SIZE = 8
 The total size (in bytes) of a page list base node. More...
 

Detailed Description

The base node of page list.

Constructor & Destructor Documentation

◆ plist_base_node_t()

lob::plist_base_node_t::plist_base_node_t ( byte frame,
byte base,
mtr_t mtr 
)
inline

Member Function Documentation

◆ add_to_empty()

void lob::plist_base_node_t::add_to_empty ( plist_node_t node)
inline

◆ addr()

paddr_t lob::plist_base_node_t::addr ( ) const
inline

◆ decr_len()

void lob::plist_base_node_t::decr_len ( )
inline

◆ empty()

bool lob::plist_base_node_t::empty ( ) const
inline

◆ get_first()

paddr_t lob::plist_base_node_t::get_first ( ) const
inline

◆ get_first_node()

plist_node_t lob::plist_base_node_t::get_first_node ( ) const
inline

◆ get_last()

paddr_t lob::plist_base_node_t::get_last ( ) const
inline

◆ get_last_node()

plist_node_t lob::plist_base_node_t::get_last_node ( ) const
inline

◆ get_len()

ulint lob::plist_base_node_t::get_len ( ) const
inline

◆ get_node()

plist_node_t lob::plist_base_node_t::get_node ( paddr_t  addr)
inline

◆ incr_len()

void lob::plist_base_node_t::incr_len ( )
inline

◆ init()

void lob::plist_base_node_t::init ( void  )
inline

◆ insert_after()

void lob::plist_base_node_t::insert_after ( plist_node_t node1,
plist_node_t node2 
)
inline

Insert node2 after node1.

◆ insert_before()

void lob::plist_base_node_t::insert_before ( plist_node_t node3,
plist_node_t node2 
)
inline

Insert node2 before node3.

◆ print()

std::ostream & lob::plist_base_node_t::print ( std::ostream &  out) const
inline

◆ print_list()

std::ostream & lob::plist_base_node_t::print_list ( std::ostream &  out) const
inline

◆ push_back()

void lob::plist_base_node_t::push_back ( plist_node_t node)
inline

◆ push_front()

void lob::plist_base_node_t::push_front ( plist_node_t node)
inline

◆ remove()

void lob::plist_base_node_t::remove ( plist_node_t node)
inline

◆ set_first()

void lob::plist_base_node_t::set_first ( paddr_t  addr)
inline

◆ set_last()

void lob::plist_base_node_t::set_last ( paddr_t  addr)
inline

◆ set_len()

void lob::plist_base_node_t::set_len ( ulint  len)
inline

◆ validate()

bool lob::plist_base_node_t::validate ( ) const

Validate the page list.

Returns
true if valid, false otherwise.

Member Data Documentation

◆ m_base

byte* lob::plist_base_node_t::m_base

◆ m_frame

byte* lob::plist_base_node_t::m_frame

◆ m_mtr

mtr_t* lob::plist_base_node_t::m_mtr

◆ OFFSET_FIRST

const ulint lob::plist_base_node_t::OFFSET_FIRST = 4
static

The offset where the first node is located.

This is 2 bytes long.

◆ OFFSET_LAST

const ulint lob::plist_base_node_t::OFFSET_LAST = 6
static

The offset where the last node is located.

This is 2 bytes long.

◆ OFFSET_LEN

const ulint lob::plist_base_node_t::OFFSET_LEN = 0
static

The offset where the length of the page list is stored.

This is 4 bytes long.

◆ SIZE

const ulint lob::plist_base_node_t::SIZE = 8
static

The total size (in bytes) of a page list base node.


The documentation for this struct was generated from the following files: