Represents basic event metadata: type and length.
More...
#include <event_file_metadata.h>
|
| | Event_file_metadata ()=default |
| |
| | Event_file_metadata (const Event_metadata &ev_meta, const std::string &file_name, std::size_t file_position, Log_event *ev) |
| | Construct. More...
|
| |
| | Event_file_metadata (const Event_metadata &ev_meta, const std::string &file_name, std::size_t file_position, Log_event *ev, std::optional< Event_payload > data) |
| |
| | Event_file_metadata (const Event_metadata &ev_meta, const std::string &file_name, std::size_t file_position, const std::string &query, bool is_atomic_ddl, Log_event *ev) |
| | Construct. More...
|
| |
| std::size_t | get_length () const |
| | Event length accessor. More...
|
| |
| Type | get_type () const |
| | Event type accessor. More...
|
| |
| std::string | get_file_name () const |
| | Event location accessor. More...
|
| |
| std::size_t | get_file_pos () const |
| | Event location accessor. More...
|
| |
| bool | is_ignorable () const |
| | Returns information on whether this event is ignorable. More...
|
| |
| const std::string & | get_query () const |
| | Returns query string if type is QUERY_LOG_EVENT, otherwise, empty string. More...
|
| |
| bool | is_atomic_ddl () const |
| | Is atomic DDL flag if any. More...
|
| |
| bool | is_valid () const |
| | We allow to construct empty objects, this function returns true in case object was initialized with data. More...
|
| |
| bool | is_in_same_file (const Event_file_metadata &arg) const |
| | Compares two events and returns true if they are placed in the same location. More...
|
| |
| bool | has_payload () const |
| |
| bool | has_event () const |
| |
| const Event_payload & | get_payload () const |
| |
| std::shared_ptr< Log_event > | get_event () |
| |
| void | clear_file_metadata () |
| |
Represents basic event metadata: type and length.
◆ Type
◆ Event_file_metadata() [1/4]
| mysql::csa::Event_file_metadata::Event_file_metadata |
( |
| ) |
|
|
default |
◆ Event_file_metadata() [2/4]
| mysql::csa::Event_file_metadata::Event_file_metadata |
( |
const Event_metadata & |
ev_meta, |
|
|
const std::string & |
file_name, |
|
|
std::size_t |
file_position, |
|
|
Log_event * |
ev |
|
) |
| |
|
inline |
◆ Event_file_metadata() [3/4]
| mysql::csa::Event_file_metadata::Event_file_metadata |
( |
const Event_metadata & |
ev_meta, |
|
|
const std::string & |
file_name, |
|
|
std::size_t |
file_position, |
|
|
Log_event * |
ev, |
|
|
std::optional< Event_payload > |
data |
|
) |
| |
|
inline |
◆ Event_file_metadata() [4/4]
| mysql::csa::Event_file_metadata::Event_file_metadata |
( |
const Event_metadata & |
ev_meta, |
|
|
const std::string & |
file_name, |
|
|
std::size_t |
file_position, |
|
|
const std::string & |
query, |
|
|
bool |
is_atomic_ddl, |
|
|
Log_event * |
ev |
|
) |
| |
|
inline |
◆ clear_file_metadata()
| void mysql::csa::Event_file_metadata::clear_file_metadata |
( |
| ) |
|
|
inline |
◆ get_event()
| std::shared_ptr< Log_event > mysql::csa::Event_file_metadata::get_event |
( |
| ) |
|
|
inline |
◆ get_file_name()
| std::string mysql::csa::Event_file_metadata::get_file_name |
( |
| ) |
const |
|
inline |
Event location accessor.
- Returns
- Log event file location: file name
◆ get_file_pos()
| std::size_t mysql::csa::Event_file_metadata::get_file_pos |
( |
| ) |
const |
|
inline |
Event location accessor.
- Returns
- Log event file location: file position
◆ get_length()
| std::size_t mysql::csa::Event_file_metadata::get_length |
( |
| ) |
const |
|
inline |
Event length accessor.
- Returns
- Event length
◆ get_payload()
| const Event_payload & mysql::csa::Event_file_metadata::get_payload |
( |
| ) |
const |
|
inline |
◆ get_query()
| const std::string & mysql::csa::Event_file_metadata::get_query |
( |
| ) |
const |
|
inline |
Returns query string if type is QUERY_LOG_EVENT, otherwise, empty string.
- Returns
- query string if type is QUERY_LOG_EVENT, otherwise, empty string
◆ get_type()
| Type mysql::csa::Event_file_metadata::get_type |
( |
| ) |
const |
|
inline |
Event type accessor.
- Returns
- Event type
◆ has_event()
| bool mysql::csa::Event_file_metadata::has_event |
( |
| ) |
const |
|
inline |
◆ has_payload()
| bool mysql::csa::Event_file_metadata::has_payload |
( |
| ) |
const |
|
inline |
◆ is_atomic_ddl()
| bool mysql::csa::Event_file_metadata::is_atomic_ddl |
( |
| ) |
const |
|
inline |
Is atomic DDL flag if any.
◆ is_ignorable()
| bool mysql::csa::Event_file_metadata::is_ignorable |
( |
| ) |
const |
|
inline |
Returns information on whether this event is ignorable.
- Returns
- True if event may be ignored
◆ is_in_same_file()
Compares two events and returns true if they are placed in the same location.
- Returns
- True in case files are in the same location, false otherwise
◆ is_valid()
| bool mysql::csa::Event_file_metadata::is_valid |
( |
void |
| ) |
const |
|
inline |
We allow to construct empty objects, this function returns true in case object was initialized with data.
- Returns
- True in case object was initialized with data, false otherwise
◆ m_data
| std::optional<Event_payload> mysql::csa::Event_file_metadata::m_data |
|
private |
Payload raw data, if any.
◆ m_event
| std::shared_ptr<Log_event> mysql::csa::Event_file_metadata::m_event |
|
private |
Decoded event, if available.
◆ m_event_metadata
◆ m_file_name
| std::string mysql::csa::Event_file_metadata::m_file_name |
|
private |
Log event file location: file name.
◆ m_file_postion
| std::size_t mysql::csa::Event_file_metadata::m_file_postion |
|
private |
Log event file location: file position.
◆ m_is_atomic_ddl
| bool mysql::csa::Event_file_metadata::m_is_atomic_ddl {false} |
|
private |
"is atomic DDL" flag, filled if type is QUERY_LOG_EVENT
◆ m_query
| std::string mysql::csa::Event_file_metadata::m_query {""} |
|
private |
Query is needed to check transaction boundary, filled if type is QUERY_LOG_EVENT.
The documentation for this class was generated from the following file: