23#ifndef PLUGIN_PFS_TABLE_PLUGIN_pfs_example_continent_H_
24#define PLUGIN_PFS_TABLE_PLUGIN_pfs_example_continent_H_
36#define CONTINENT_MAX_ROWS 10
107 if (!pc_string_srv->match_key_string(
false,
record->name,
142 unsigned int idx,
int find_flag);
Definition: pfs_example_continent.h:62
Continent_POS()
Definition: pfs_example_continent.h:68
unsigned int m_index
Definition: pfs_example_continent.h:64
void set_after(Continent_POS *pos)
Definition: pfs_example_continent.h:84
void next()
Definition: pfs_example_continent.h:74
unsigned int get_index()
Definition: pfs_example_continent.h:78
void reset()
Definition: pfs_example_continent.h:76
bool has_more()
Definition: pfs_example_continent.h:70
void set_at(unsigned int index)
Definition: pfs_example_continent.h:80
void set_at(Continent_POS *pos)
Definition: pfs_example_continent.h:82
Definition: pfs_example_continent.h:99
PSI_plugin_key_string m_name
Definition: pfs_example_continent.h:101
char m_name_buffer[CONTINENT_NAME_LEN]
Definition: pfs_example_continent.h:103
bool match(Continent_record *record) override
Definition: pfs_example_continent.h:105
Definition: pfs_example_continent.h:87
virtual bool match(Continent_record *record)=0
virtual ~Continent_index()=default
unsigned int m_fields
Definition: pfs_example_continent.h:95
Continent_index()
Definition: pfs_example_continent.h:89
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
#define CONTINENT_NAME_LEN
Definition: pfs_example_component_population.h:44
int continent_write_row_values(PSI_table_handle *handle)
int continent_rnd_init(PSI_table_handle *h, bool scan)
Definition: pfs_example_continent.cc:97
PFS_engine_table_share_proxy continent_st_share
Definition: pfs_example_continent.cc:29
int continent_index_next(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:158
int continent_rnd_next(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:80
#define CONTINENT_MAX_ROWS
Definition: pfs_example_continent.h:36
Continent_record continent_records_array[CONTINENT_MAX_ROWS]
An array to keep rows of the tables.
Definition: pfs_example_continent.cc:39
int continent_write_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
void init_continent_share(PFS_engine_table_share_proxy *share)
Definition: pfs_example_continent.cc:252
int continent_delete_row_values(PSI_table_handle *handle)
PSI_table_handle * continent_open_table(PSI_pos **pos)
Instantiate Continent_Table_Handle at plugin code when corresponding table in performance schema is o...
Definition: pfs_example_continent.cc:55
int continent_delete_all_rows(void)
Definition: pfs_example_continent.cc:41
void continent_reset_position(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:187
native_mutex_t LOCK_continent_records_array
Definition: pfs_example_continent.cc:31
unsigned long long continent_get_row_count(void)
Definition: pfs_example_continent.cc:248
int continent_read_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: pfs_example_continent.cc:195
int continent_update_row_values(PSI_table_handle *handle)
int continent_index_read(PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
Definition: pfs_example_continent.cc:138
int write_rows_from_component(Continent_Table_Handle *h)
Definition: pfs_example_continent.cc:215
int continent_index_init(PSI_table_handle *handle, unsigned int idx, bool sorted, PSI_index_handle **index)
Definition: pfs_example_continent.cc:113
void continent_close_table(PSI_table_handle *handle)
Destroy the Continent_Table_Handle at plugin code when corresponding table in performance schema is c...
Definition: pfs_example_continent.cc:67
int continent_rnd_pos(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:100
int continent_update_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
struct PSI_table_handle PSI_table_handle
This is an opaque structure to denote table handle in plugin/component code.
Definition: pfs_plugin_table_service.h:96
struct PSI_pos PSI_pos
This is an opaque structure to denote cursor position in plugin/component code.
Definition: pfs_plugin_table_service.h:101
struct PSI_key_reader PSI_key_reader
This is an opaque structure to denote Key Reader in plugin/component code.
Definition: pfs_plugin_table_service.h:105
struct PSI_index_handle PSI_index_handle
This is an opaque structure to denote Index Handle in plugin/component code.
Definition: pfs_plugin_table_service.h:109
struct PSI_field PSI_field
This is an opaque structure to denote filed in plugin/component code.
Definition: pfs_plugin_table_service.h:92
Specifies macros to define Service Implementations.
case opt name
Definition: sslopt-case.h:32
Definition: pfs_example_continent.h:118
Continent_index_by_name m_index
Definition: pfs_example_continent.h:128
Continent_POS m_next_pos
Definition: pfs_example_continent.h:122
Continent_POS m_pos
Definition: pfs_example_continent.h:120
unsigned int index_num
Definition: pfs_example_continent.h:131
Continent_record current_row
Definition: pfs_example_continent.h:125
Definition: pfs_example_continent.h:46
unsigned int name_length
Definition: pfs_example_continent.h:48
bool m_exist
Definition: pfs_example_continent.h:51
A share to be initialized by plugin/component code and to be provided to add_table() service method o...
Definition: pfs_plugin_table_service.h:444
A structure to denote a key of type string in an index.
Definition: pfs_plugin_table_service.h:225
Definition: mi_test3.cc:54
MySQL mutex implementation.
pthread_mutex_t native_mutex_t
Definition: thr_mutex_bits.h:54