MySQL 9.0.0
Source Code Documentation
Session_gtids_ctx_encoder Class Referenceabstract

This is an interface for encoding the gtids in the payload of the the OK packet. More...

Inheritance diagram for Session_gtids_ctx_encoder:
[legend]

Public Member Functions

 Session_gtids_ctx_encoder ()=default
 
virtual ~Session_gtids_ctx_encoder ()=default
 
virtual bool encode (THD *thd, String &buf)=0
 
virtual ulonglong encoding_specification ()=0
 

Private Member Functions

 Session_gtids_ctx_encoder (const Session_gtids_ctx_encoder &rsc)
 
Session_gtids_ctx_encoderoperator= (const Session_gtids_ctx_encoder &rsc)
 

Detailed Description

This is an interface for encoding the gtids in the payload of the the OK packet.

In the future we may have different types of payloads, thence we may have different encoders specifications/types. This implies changing either, the encoding specification code, the actual encoding procedure or both at the same time.

New encoders can extend this interface/abstract class or extend other encoders in the hierarchy.

Constructor & Destructor Documentation

◆ Session_gtids_ctx_encoder() [1/2]

Session_gtids_ctx_encoder::Session_gtids_ctx_encoder ( )
default

◆ ~Session_gtids_ctx_encoder()

virtual Session_gtids_ctx_encoder::~Session_gtids_ctx_encoder ( )
virtualdefault

◆ Session_gtids_ctx_encoder() [2/2]

Session_gtids_ctx_encoder::Session_gtids_ctx_encoder ( const Session_gtids_ctx_encoder rsc)
private

Member Function Documentation

◆ encode()

virtual bool Session_gtids_ctx_encoder::encode ( THD thd,
String buf 
)
pure virtual

◆ encoding_specification()

virtual ulonglong Session_gtids_ctx_encoder::encoding_specification ( )
pure virtual

◆ operator=()

Session_gtids_ctx_encoder & Session_gtids_ctx_encoder::operator= ( const Session_gtids_ctx_encoder rsc)
private

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