MySQL 8.4.2
Source Code Documentation
|
Interface class that all specializations of template <...> Basic_binlog_file_reader inherit from. More...
#include <binlog_reader.h>
Public Member Functions | |
IBasic_binlog_file_reader ()=default | |
IBasic_binlog_file_reader (IBasic_binlog_file_reader &)=delete | |
IBasic_binlog_file_reader (IBasic_binlog_file_reader &&)=delete | |
IBasic_binlog_file_reader & | operator= (IBasic_binlog_file_reader &)=delete |
IBasic_binlog_file_reader & | operator= (IBasic_binlog_file_reader &&)=delete |
virtual | ~IBasic_binlog_file_reader ()=default |
virtual bool | has_fatal_error () const =0 |
Return true if there was a previous error. More... | |
virtual Binlog_read_error::Error_type | get_error_type () const =0 |
Return the type of error. More... | |
virtual const char * | get_error_str () const =0 |
Return a string representing the error. More... | |
virtual my_off_t | position () const =0 |
Return the current position in bytes, relative to the beginning of the file. More... | |
virtual Log_event * | read_event_object ()=0 |
Read the next event from the stream. More... | |
virtual const mysql::binlog::event::Format_description_event & | format_description_event () const =0 |
Return a pointer the currently used Format_description_log_event. More... | |
Interface class that all specializations of template <...> Basic_binlog_file_reader inherit from.
|
default |
|
delete |
|
delete |
|
virtualdefault |
|
pure virtual |
Return a pointer the currently used Format_description_log_event.
The event is a member by this reader, so the caller must not use the returned reference after this reader has been deleted.
Implemented in Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >, and Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocator >.
|
pure virtual |
Return a string representing the error.
The return value is static memory that is never deallocated.
Implemented in Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >, and Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocator >.
|
pure virtual |
|
pure virtual |
Return true if there was a previous error.
Implemented in Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >, and Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocator >.
|
delete |
|
delete |
|
pure virtual |
Return the current position in bytes, relative to the beginning of the file.
Implemented in Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >, and Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocator >.
|
pure virtual |
Read the next event from the stream.
This function creates the object with "new". It is the caller's responsibility to delete it.
get_error_type
and get_error_str
. Implemented in Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >, and Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocator >.