MySQL 8.0.39
Source Code Documentation
binary_log::Rows_event::Extra_row_info Class Reference

#include <rows_event.h>

Public Member Functions

 Extra_row_info ()
 
 Extra_row_info (const Extra_row_info &)=delete
 
int get_partition_id () const
 
void set_partition_id (int partition_id)
 
int get_source_partition_id () const
 
void set_source_partition_id (int source_partition_id)
 
unsigned char * get_ndb_info () const
 
void set_ndb_info (const unsigned char *ndb_info, size_t len)
 
bool compare_extra_row_info (const unsigned char *ndb_info_arg, int part_id_arg, int source_part_id)
 Compares the extra_row_info in a Row event, it checks three things. More...
 
bool have_part () const
 
bool have_ndb_info () const
 
size_t get_ndb_length ()
 
size_t get_part_length ()
 
 ~Extra_row_info ()
 

Static Public Attributes

static const int UNDEFINED {INT_MAX}
 

Private Attributes

int m_partition_id
 partition_id for a row in a partitioned table More...
 
int m_source_partition_id
 It is the partition_id of the source partition in case of Update_event, the target's partition_id is m_partition_id. More...
 
unsigned char * m_extra_row_ndb_info
 The extra row info provided by NDB. More...
 

Constructor & Destructor Documentation

◆ Extra_row_info() [1/2]

binary_log::Rows_event::Extra_row_info::Extra_row_info ( )
inline

◆ Extra_row_info() [2/2]

binary_log::Rows_event::Extra_row_info::Extra_row_info ( const Extra_row_info )
delete

◆ ~Extra_row_info()

binary_log::Rows_event::Extra_row_info::~Extra_row_info ( )

Member Function Documentation

◆ compare_extra_row_info()

bool binary_log::Rows_event::Extra_row_info::compare_extra_row_info ( const unsigned char *  ndb_info_arg,
int  part_id_arg,
int  source_part_id 
)

Compares the extra_row_info in a Row event, it checks three things.

  1. The m_extra_row_ndb_info pointers. It compares their significant bytes.
  2. Partition_id
  3. source_partition_id
Returns
true all the above variables are same in the event and the one passed in parameter. false Any of the above variable has a different value.

◆ get_ndb_info()

unsigned char * binary_log::Rows_event::Extra_row_info::get_ndb_info ( ) const
inline

◆ get_ndb_length()

size_t binary_log::Rows_event::Extra_row_info::get_ndb_length ( )

◆ get_part_length()

size_t binary_log::Rows_event::Extra_row_info::get_part_length ( )

◆ get_partition_id()

int binary_log::Rows_event::Extra_row_info::get_partition_id ( ) const
inline

◆ get_source_partition_id()

int binary_log::Rows_event::Extra_row_info::get_source_partition_id ( ) const
inline

◆ have_ndb_info()

bool binary_log::Rows_event::Extra_row_info::have_ndb_info ( ) const
inline

◆ have_part()

bool binary_log::Rows_event::Extra_row_info::have_part ( ) const
inline

◆ set_ndb_info()

void binary_log::Rows_event::Extra_row_info::set_ndb_info ( const unsigned char *  ndb_info,
size_t  len 
)
inline

◆ set_partition_id()

void binary_log::Rows_event::Extra_row_info::set_partition_id ( int  partition_id)
inline

◆ set_source_partition_id()

void binary_log::Rows_event::Extra_row_info::set_source_partition_id ( int  source_partition_id)
inline

Member Data Documentation

◆ m_extra_row_ndb_info

unsigned char* binary_log::Rows_event::Extra_row_info::m_extra_row_ndb_info
private

The extra row info provided by NDB.

◆ m_partition_id

int binary_log::Rows_event::Extra_row_info::m_partition_id
private

partition_id for a row in a partitioned table

◆ m_source_partition_id

int binary_log::Rows_event::Extra_row_info::m_source_partition_id
private

It is the partition_id of the source partition in case of Update_event, the target's partition_id is m_partition_id.

This variable is used only in case of Update_event.

◆ UNDEFINED

const int binary_log::Rows_event::Extra_row_info::UNDEFINED {INT_MAX}
static

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