MySQL 8.3.0
Source Code Documentation
lob::node_page_t Struct Reference

The node page (also can be called as the index page) contains a list of index_entry_t objects. More...

#include <lob0impl.h>

Inheritance diagram for lob::node_page_t:
[legend]

Public Member Functions

void set_version_0 ()
 
 node_page_t ()=default
 Default ctor. More...
 
 node_page_t (buf_block_t *block, mtr_t *mtr)
 
 node_page_t (buf_block_t *block, mtr_t *mtr, dict_index_t *index)
 
 node_page_t (mtr_t *mtr, dict_index_t *index)
 
 node_page_t (buf_block_t *block)
 Constructor. More...
 
void import (trx_id_t trx_id)
 Import the node page or the index page. More...
 
buf_block_talloc (first_page_t &first_page, bool bulk)
 Allocate one node page. More...
 
buf_block_tload_x (page_id_t page_id, page_size_t page_size)
 
void dealloc ()
 
void set_page_type ()
 
bytenodes_begin () const
 
- Public Member Functions inherited from lob::basic_page_t
 basic_page_t ()
 
 basic_page_t (buf_block_t *block, mtr_t *mtr)
 
 basic_page_t (buf_block_t *block, mtr_t *mtr, dict_index_t *index)
 
void set_space_id_no_redo (space_id_t space_id)
 Update the space identifier to given value without generating any redo log records. More...
 
page_no_t get_page_no () const
 Get page number of the current page. More...
 
page_id_t get_page_id () const
 Get the page id of the current page. More...
 
void set_next_page (page_no_t page_no, mtr_t *mtr)
 Set the FIL_PAGE_NEXT to the given page number, using the given mini transaction context. More...
 
void set_next_page (page_no_t page_no)
 Set the FIL_PAGE_NEXT to the given page number. More...
 
void set_next_page_null ()
 Set the FIL_PAGE_NEXT to FIL_NULL. More...
 
page_no_t get_next_page ()
 
page_type_t get_page_type () const
 
byteframe () const
 
flst_node_tget_flst_node (const fil_addr_t &addr)
 
ulint max_space_available ()
 
buf_block_tget_block () const noexcept
 Get the underlying buffer block. More...
 
void set_block (buf_block_t *block)
 
void set_mtr (mtr_t *mtr)
 

Static Public Member Functions

static ulint payload ()
 
static ulint max_space_available ()
 
static ulint node_count ()
 Get the number of index entries this page can hold. More...
 
- Static Public Member Functions inherited from lob::basic_page_t
static ulint payload ()
 

Static Public Attributes

static const ulint OFFSET_VERSION = FIL_PAGE_DATA
 Version information. More...
 
static const ulint LOB_PAGE_DATA = OFFSET_VERSION + 1
 

Additional Inherited Members

- Protected Attributes inherited from lob::basic_page_t
buf_block_tm_block
 
mtr_tm_mtr
 
dict_index_tm_index
 

Detailed Description

The node page (also can be called as the index page) contains a list of index_entry_t objects.

Constructor & Destructor Documentation

◆ node_page_t() [1/5]

lob::node_page_t::node_page_t ( )
default

Default ctor.

◆ node_page_t() [2/5]

lob::node_page_t::node_page_t ( buf_block_t block,
mtr_t mtr 
)
inline

◆ node_page_t() [3/5]

lob::node_page_t::node_page_t ( buf_block_t block,
mtr_t mtr,
dict_index_t index 
)
inline

◆ node_page_t() [4/5]

lob::node_page_t::node_page_t ( mtr_t mtr,
dict_index_t index 
)
inline

◆ node_page_t() [5/5]

lob::node_page_t::node_page_t ( buf_block_t block)
inline

Constructor.

Parameters
[in]blockthe buffer block.

Member Function Documentation

◆ alloc()

buf_block_t * lob::node_page_t::alloc ( first_page_t first_page,
bool  bulk 
)

Allocate one node page.

◆ dealloc()

void lob::node_page_t::dealloc ( )
inline

◆ import()

void lob::node_page_t::import ( trx_id_t  trx_id)

Import the node page or the index page.

Parameters
[in]trx_idtransaction identifier.

◆ load_x()

buf_block_t * lob::node_page_t::load_x ( page_id_t  page_id,
page_size_t  page_size 
)
inline

◆ max_space_available()

static ulint lob::node_page_t::max_space_available ( )
inlinestatic

◆ node_count()

ulint lob::node_page_t::node_count ( )
static

Get the number of index entries this page can hold.

Returns
Number of index entries this page can hold.

◆ nodes_begin()

byte * lob::node_page_t::nodes_begin ( ) const
inline

◆ payload()

static ulint lob::node_page_t::payload ( )
inlinestatic

◆ set_page_type()

void lob::node_page_t::set_page_type ( )
inline

◆ set_version_0()

void lob::node_page_t::set_version_0 ( )
inline

Member Data Documentation

◆ LOB_PAGE_DATA

const ulint lob::node_page_t::LOB_PAGE_DATA = OFFSET_VERSION + 1
static

◆ OFFSET_VERSION

const ulint lob::node_page_t::OFFSET_VERSION = FIL_PAGE_DATA
static

Version information.

One byte.


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