MySQL 9.0.0
Source Code Documentation
cs::util::ColumnFilter Class Referenceabstract

When iterating the table fields for sometimes you want to skip some columns. More...

#include <column_filter.h>

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

Public Member Functions

virtual ~ColumnFilter ()=default
 
virtual bool filter_column (TABLE const *table, size_t column_index)=0
 

Detailed Description

When iterating the table fields for sometimes you want to skip some columns.

Such a case is the filtering of GIPK or functional indexes when replicating a table.

Classes that inherit this class shall also implement the method

static bool is_filter_needed(THD const *thd, TABLE *table, table_def const *tabledef);

It allows for the conditional addition of the filter only when it makes sense

Constructor & Destructor Documentation

◆ ~ColumnFilter()

virtual cs::util::ColumnFilter::~ColumnFilter ( )
virtualdefault

Member Function Documentation

◆ filter_column()

virtual bool cs::util::ColumnFilter::filter_column ( TABLE const *  table,
size_t  column_index 
)
pure virtual

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