MySQL 8.4.0
Source Code Documentation
cs::util::ColumnFilterInboundGipk Class Reference

Class used when we want a column view over a table in a context where the replicated table contains a GIPK on the replica, but not on the source. More...

#include <column_filter_inbound_gipk.h>

Inheritance diagram for cs::util::ColumnFilterInboundGipk:
[legend]

Static Public Member Functions

static bool is_filter_needed (THD const &thd, TABLE *table, table_def const *tabledef)
 Is this filter needed given context passed in the parameters. More...
 

Private Member Functions

bool filter_column (TABLE const *, size_t column_index) override
 

Additional Inherited Members

- Public Member Functions inherited from cs::util::ColumnFilter
virtual ~ColumnFilter ()=default
 

Detailed Description

Class used when we want a column view over a table in a context where the replicated table contains a GIPK on the replica, but not on the source.

SOURCE TABLE t +-—+-—+-—+ | C1 | C2 | C3 | +-—+-—+-—+

REPLICA TABLE t +---—+-—+-—+-—+ | GIPK | C1 | C2 | C3 | +---—+-—+-—+-—+

This class filters the first column on iteration.

Member Function Documentation

◆ filter_column()

bool cs::util::ColumnFilterInboundGipk::filter_column ( TABLE const *  ,
size_t  column_index 
)
overrideprivatevirtual

◆ is_filter_needed()

bool cs::util::ColumnFilterInboundGipk::is_filter_needed ( THD const &  thd,
TABLE table,
table_def const *  tabledef 
)
static

Is this filter needed given context passed in the parameters.

Parameters
thdthe thread objected associated to filter
tablethe table where the columns are being iterated
tabledefthe source table definition if applicable
Returns
true if the filter should be used
false if the filter is not needed

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