MySQL 8.4.2
Source Code Documentation
|
This struct can hold BLOB routines/functions, and state variables, that are common for compressed and uncompressed BLOB. More...
#include <lob0ins.h>
Public Member Functions | |
BaseInserter (InsertContext *ctx) | |
Constructor. More... | |
mtr_t * | start_blob_mtr () |
Start the BLOB mtr. More... | |
buf_block_t * | alloc_blob_page () |
Allocate one BLOB page. More... | |
page_t * | get_previous_blob_page () |
Get the previous BLOB page frame. More... | |
buf_block_t * | get_previous_blob_block () |
Get the previous BLOB page block. More... | |
bool | is_index_sdi () |
Check if the index is SDI index. More... | |
page_t * | cur_page () const |
Get the current BLOB page frame. More... | |
Protected Attributes | |
InsertContext * | m_ctx |
The BLOB operation context. More... | |
dberr_t | m_err |
Success or failure status of the operation so far. More... | |
mtr_t | m_blob_mtr |
The mini trx used to write into blob pages. More... | |
page_no_t | m_prev_page_no |
The previous BLOB page number. More... | |
buf_block_t * | m_cur_blob_block |
The current BLOB buf_block_t object. More... | |
page_no_t | m_cur_blob_page_no |
The current BLOB page number. More... | |
This struct can hold BLOB routines/functions, and state variables, that are common for compressed and uncompressed BLOB.
|
inline |
Constructor.
[in] | ctx | blob operation context. |
buf_block_t * lob::BaseInserter::alloc_blob_page | ( | ) |
Allocate one BLOB page.
|
inline |
Get the current BLOB page frame.
buf_block_t * lob::BaseInserter::get_previous_blob_block | ( | ) |
Get the previous BLOB page block.
This will return a BLOB block. It should not be called for the first BLOB page, because it will not have a previous BLOB page.
page_t * lob::BaseInserter::get_previous_blob_page | ( | ) |
Get the previous BLOB page frame.
This will return a BLOB page. It should not be called for the first BLOB page, because it will not have a previous BLOB page.
|
inline |
Check if the index is SDI index.
|
inline |
Start the BLOB mtr.
|
protected |
The mini trx used to write into blob pages.
|
protected |
The BLOB operation context.
|
protected |
The current BLOB buf_block_t object.
|
protected |
The current BLOB page number.
|
protected |
Success or failure status of the operation so far.
|
protected |
The previous BLOB page number.
This is needed to maintain the linked list of BLOB pages.