MySQL 9.0.0
Source Code Documentation
lob::z_data_page_t Struct Reference

The data page holding the zlob. More...

#include <lob0impl.h>

Public Member Functions

ulint payload ()
 
 z_data_page_t (mtr_t *mtr, dict_index_t *index)
 
 z_data_page_t (buf_block_t *block, mtr_t *mtr, dict_index_t *index)
 
 z_data_page_t (buf_block_t *block)
 
void set_space_id_no_redo (space_id_t space_id)
 Write the space identifier to the page header, without generating redo log records. More...
 
buf_block_talloc (page_no_t hint, bool bulk)
 Allocate one data page. More...
 
void dealloc ()
 Free this data page holding the zlob data. More...
 
void set_page_type ()
 Set the correct page type. More...
 
void set_version_0 ()
 
void set_next_page (page_no_t page_no)
 Set the next page. More...
 
void init ()
 
bytebegin_data_ptr () const
 
void set_data_len (ulint len)
 
ulint get_data_len () const
 
void set_trx_id (trx_id_t tid)
 
void set_trx_id_no_redo (trx_id_t tid)
 Update the header with given transaction identifier, without writing redo log records. More...
 
page_no_t get_page_no () const
 Get the page number. More...
 
fil_addr_t get_self_addr () const
 
byteframe () const
 

Public Attributes

buf_block_tm_block
 
mtr_tm_mtr
 
dict_index_tm_index
 

Static Public Attributes

static const ulint OFFSET_VERSION = FIL_PAGE_DATA
 Version information. More...
 
static const ulint OFFSET_DATA_LEN = OFFSET_VERSION + 1
 
static const ulint OFFSET_TRX_ID = OFFSET_DATA_LEN + 4
 
static const ulint OFFSET_DATA_BEGIN = OFFSET_TRX_ID + 6
 

Detailed Description

The data page holding the zlob.

Constructor & Destructor Documentation

◆ z_data_page_t() [1/3]

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

◆ z_data_page_t() [2/3]

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

◆ z_data_page_t() [3/3]

lob::z_data_page_t::z_data_page_t ( buf_block_t block)
inline

Member Function Documentation

◆ alloc()

buf_block_t * lob::z_data_page_t::alloc ( page_no_t  hint,
bool  bulk 
)

Allocate one data page.

Parameters
[in]hinthint page number for allocation.
[in]bulktrue if bulk operation (OPCODE_INSERT_BULK) false otherwise.
Returns
the allocated buffer block.

◆ begin_data_ptr()

byte * lob::z_data_page_t::begin_data_ptr ( ) const
inline

◆ dealloc()

void lob::z_data_page_t::dealloc ( )
inline

Free this data page holding the zlob data.

◆ frame()

byte * lob::z_data_page_t::frame ( ) const
inline

◆ get_data_len()

ulint lob::z_data_page_t::get_data_len ( ) const
inline

◆ get_page_no()

page_no_t lob::z_data_page_t::get_page_no ( ) const
inline

Get the page number.

◆ get_self_addr()

fil_addr_t lob::z_data_page_t::get_self_addr ( ) const
inline

◆ init()

void lob::z_data_page_t::init ( void  )
inline

◆ payload()

ulint lob::z_data_page_t::payload ( )
inline

◆ set_data_len()

void lob::z_data_page_t::set_data_len ( ulint  len)
inline

◆ set_next_page()

void lob::z_data_page_t::set_next_page ( page_no_t  page_no)
inline

Set the next page.

◆ set_page_type()

void lob::z_data_page_t::set_page_type ( )
inline

Set the correct page type.

◆ set_space_id_no_redo()

void lob::z_data_page_t::set_space_id_no_redo ( space_id_t  space_id)
inline

Write the space identifier to the page header, without generating redo log records.

Parameters
[in]space_idthe space identifier.

◆ set_trx_id()

void lob::z_data_page_t::set_trx_id ( trx_id_t  tid)
inline

◆ set_trx_id_no_redo()

void lob::z_data_page_t::set_trx_id_no_redo ( trx_id_t  tid)
inline

Update the header with given transaction identifier, without writing redo log records.

Parameters
[in]tidtransaction identifier.

◆ set_version_0()

void lob::z_data_page_t::set_version_0 ( )
inline

Member Data Documentation

◆ m_block

buf_block_t* lob::z_data_page_t::m_block

◆ m_index

dict_index_t* lob::z_data_page_t::m_index

◆ m_mtr

mtr_t* lob::z_data_page_t::m_mtr

◆ OFFSET_DATA_BEGIN

const ulint lob::z_data_page_t::OFFSET_DATA_BEGIN = OFFSET_TRX_ID + 6
static

◆ OFFSET_DATA_LEN

const ulint lob::z_data_page_t::OFFSET_DATA_LEN = OFFSET_VERSION + 1
static

◆ OFFSET_TRX_ID

const ulint lob::z_data_page_t::OFFSET_TRX_ID = OFFSET_DATA_LEN + 4
static

◆ OFFSET_VERSION

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

Version information.

One byte.


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