![]() |
MySQL 9.2.0
Source Code Documentation
|
Event for the first block of file to be loaded, its only difference from Append_block event is that this event creates or truncates existing file before writing data. More...
#include <load_data_events.h>
Public Member Functions | |
Begin_load_query_event (const char *buf, const Format_description_event *fde) | |
The buffer layout for fixed data part is as follows: More... | |
~Begin_load_query_event () override=default | |
![]() | |
Append_block_event (const char *buf, const Format_description_event *fde) | |
Appends the buffered data, received as a parameter, to the file being loaded via LOAD_DATA_FILE. More... | |
~Append_block_event () override=default | |
![]() | |
virtual | ~Binary_log_event ()=0 |
Binary_log_event (const Binary_log_event &)=default | |
Binary_log_event (Binary_log_event &&)=default | |
Binary_log_event & | operator= (const Binary_log_event &)=default |
Binary_log_event & | operator= (Binary_log_event &&)=default |
enum Log_event_type | get_event_type () const |
Helper method. More... | |
const Log_event_header * | header () const |
Return a const pointer to the header of the log event. More... | |
Log_event_header * | header () |
Return a non-const pointer to the header of the log event. More... | |
const Log_event_footer * | footer () const |
Return a const pointer to the footer of the log event. More... | |
Log_event_footer * | footer () |
Return a non-const pointer to the footer of the log event. More... | |
Event_reader & | reader () |
Returns a reference to the event Event_reader object. More... | |
Protected Member Functions | |
Begin_load_query_event () | |
![]() | |
Append_block_event (const char *db_arg, unsigned char *block_arg, unsigned int block_len_arg, uint32_t file_id_arg) | |
This constructor is used by the MySQL server. More... | |
Append_block_event (Log_event_type type_arg=APPEND_BLOCK_EVENT) | |
![]() | |
Binary_log_event (Log_event_type type_code) | |
This constructor is used to initialize the type_code of header object m_header. More... | |
Binary_log_event (const char **buf, const Format_description_event *fde) | |
This constructor will create a new object of Log_event_header and initialize the variable m_header, which in turn will be used to initialize Log_event's member common_header. More... | |
Event for the first block of file to be loaded, its only difference from Append_block event is that this event creates or truncates existing file before writing data.
The Post-Header and Body for this event type are empty; it only has the Common-Header.
|
inlineprotected |
mysql::binlog::event::Begin_load_query_event::Begin_load_query_event | ( | const char * | buf, |
const Format_description_event * | fde | ||
) |
The buffer layout for fixed data part is as follows:
+---------+ | file_id | +---------+
The buffer layout for variable data part is as follows:
+-------------------+ | block | block_len | +-------------------+
buf | Contains the serialized event. |
fde | An FDE event (see Rotate_event constructor for more info). |
|
overridedefault |