MySQL 26.7.0
Source Code Documentation
mysql::csa::Cached_event Class Reference

Implementation of the IReader_event which contains a cached, decoded event. More...

#include <cached_event.h>

Inheritance diagram for mysql::csa::Cached_event:
[legend]

Public Member Functions

 Cached_event (const std::shared_ptr< Log_event > &ev)
 Is constructed using Log_event. More...
 
virtual ~Cached_event () override=default
 Destructor. More...
 
std::shared_ptr< Log_eventdecode () override
 Decode function, which obtains Log event smart pointer. More...
 
void reset (const Format_description_log_event *fde) override
 Resets event state. More...
 
- Public Member Functions inherited from mysql::csa::IReader_event
virtual ~IReader_event ()=default
 

Private Attributes

std::shared_ptr< Log_eventm_data
 Internal data - cached event. More...
 
char * orig_buf {nullptr}
 

Detailed Description

Implementation of the IReader_event which contains a cached, decoded event.

Constructor & Destructor Documentation

◆ Cached_event()

mysql::csa::Cached_event::Cached_event ( const std::shared_ptr< Log_event > &  ev)

Is constructed using Log_event.

Parameters
evSmart pointer to decoded Log_event

◆ ~Cached_event()

virtual mysql::csa::Cached_event::~Cached_event ( )
overridevirtualdefault

Destructor.

Member Function Documentation

◆ decode()

std::shared_ptr< Log_event > mysql::csa::Cached_event::decode ( )
overridevirtual

Decode function, which obtains Log event smart pointer.

Returns
Log event smart pointer

Implements mysql::csa::IReader_event.

◆ reset()

void mysql::csa::Cached_event::reset ( const Format_description_log_event fde)
overridevirtual

Resets event state.

Parameters
fdeFde used to create new event object

Prepare old event for destruction

Implements mysql::csa::IReader_event.

Member Data Documentation

◆ m_data

std::shared_ptr<Log_event> mysql::csa::Cached_event::m_data
private

Internal data - cached event.

◆ orig_buf

char* mysql::csa::Cached_event::orig_buf {nullptr}
private

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