24#ifndef RPL_REPLICATED_COLUMNS_VIEW_H
25#define RPL_REPLICATED_COLUMNS_VIEW_H
132 std::vector<std::unique_ptr<cs::util::ColumnFilter>>
m_filters;
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
This template class acts as a container of table columns and encapsulates and abstracts a TABLE objec...
Definition: table_column_iterator.h:109
ColumnFilterType
The different types of filters for column iteration.
Definition: column_filter_factory.h:43
Since it's not mandatory that all fields in a TABLE object are replicated, this class extends Table_c...
Definition: replicated_columns_view.h:54
ReplicatedColumnsView(THD const *thd=nullptr)
Constructor for table iteration where a table and filters can be configured.
Definition: replicated_columns_view.cc:29
THD const * m_thd
Instance of THD class to be used to determine if filtering is to be enabled.
Definition: replicated_columns_view.h:129
ReplicatedColumnsView(const ReplicatedColumnsView &rhs)=delete
ReplicatedColumnsView & operator=(const ReplicatedColumnsView &rhs)=delete
~ReplicatedColumnsView() override=default
Destructor for the class.
std::vector< std::unique_ptr< cs::util::ColumnFilter > > m_filters
List of filters to be used against the list of fields.
Definition: replicated_columns_view.h:132
ReplicatedColumnsView & operator=(ReplicatedColumnsView &&rhs)=delete
virtual bool execute_filtering(TABLE const *table, size_t column_index)
Returns whether or not the field of table table at column_index is to be filtered from this container...
Definition: replicated_columns_view.cc:71
ReplicatedColumnsView(ReplicatedColumnsView &&rhs)=delete
void add_filter_if_needed(THD const &thd, TABLE *table, table_def const *tabledef, cs::util::ColumnFilterFactory::ColumnFilterType filter_type)
adds a new filter if the filter's static member function is_filter_needed returns true
Definition: replicated_columns_view.cc:60
ReplicatedColumnsView & set_thd(THD const *thd)
Setter to initialize the THD object instance to be used to determine if filtering is enabled.
Definition: replicated_columns_view.cc:46
void add_filter(cs::util::ColumnFilterFactory::ColumnFilterType filter_type)
Adds a new filter according to the given type.
Definition: replicated_columns_view.cc:53
A table definition from the master.
Definition: rpl_utility.h:249
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: commit_order_queue.h:34