24#ifndef PLUGIN_PFS_TABLE_PLUGIN_pfs_example_continent_H_
25#define PLUGIN_PFS_TABLE_PLUGIN_pfs_example_continent_H_
37#define CONTINENT_MAX_ROWS 10
143 unsigned int idx,
int find_flag);
Definition: pfs_example_continent.h:63
Continent_POS()
Definition: pfs_example_continent.h:69
unsigned int m_index
Definition: pfs_example_continent.h:65
void set_after(Continent_POS *pos)
Definition: pfs_example_continent.h:85
void next()
Definition: pfs_example_continent.h:75
unsigned int get_index()
Definition: pfs_example_continent.h:79
void reset()
Definition: pfs_example_continent.h:77
bool has_more()
Definition: pfs_example_continent.h:71
void set_at(unsigned int index)
Definition: pfs_example_continent.h:81
void set_at(Continent_POS *pos)
Definition: pfs_example_continent.h:83
Definition: pfs_example_continent.h:100
PSI_plugin_key_string m_name
Definition: pfs_example_continent.h:102
char m_name_buffer[CONTINENT_NAME_LEN]
Definition: pfs_example_continent.h:104
bool match(Continent_record *record) override
Definition: pfs_example_continent.h:106
Definition: pfs_example_continent.h:88
virtual bool match(Continent_record *record)=0
virtual ~Continent_index()=default
unsigned int m_fields
Definition: pfs_example_continent.h:96
Continent_index()
Definition: pfs_example_continent.h:90
static int record
Definition: mysqltest.cc:193
const mysql_service_pfs_plugin_column_string_v2_t * pc_string_srv
Definition: pfs.cc:44
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:46
int continent_write_row_values(PSI_table_handle *handle)
int continent_rnd_init(PSI_table_handle *h, bool scan)
Definition: pfs_example_continent.cc:98
PFS_engine_table_share_proxy continent_st_share
Definition: pfs_example_continent.cc:30
int continent_index_next(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:159
int continent_rnd_next(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:81
#define CONTINENT_MAX_ROWS
Definition: pfs_example_continent.h:37
Continent_record continent_records_array[CONTINENT_MAX_ROWS]
An array to keep rows of the tables.
Definition: pfs_example_continent.cc:40
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:253
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:56
int continent_delete_all_rows(void)
Definition: pfs_example_continent.cc:42
void continent_reset_position(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:188
native_mutex_t LOCK_continent_records_array
Definition: pfs_example_continent.cc:32
unsigned long long continent_get_row_count(void)
Definition: pfs_example_continent.cc:249
int continent_read_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: pfs_example_continent.cc:196
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:139
int write_rows_from_component(Continent_Table_Handle *h)
Definition: pfs_example_continent.cc:216
int continent_index_init(PSI_table_handle *handle, unsigned int idx, bool sorted, PSI_index_handle **index)
Definition: pfs_example_continent.cc:114
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:68
int continent_rnd_pos(PSI_table_handle *handle)
Definition: pfs_example_continent.cc:101
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:97
struct PSI_pos PSI_pos
This is an opaque structure to denote cursor position in plugin/component code.
Definition: pfs_plugin_table_service.h:102
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:106
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:110
struct PSI_field PSI_field
This is an opaque structure to denote filed in plugin/component code.
Definition: pfs_plugin_table_service.h:93
Specifies macros to define Service Implementations.
case opt name
Definition: sslopt-case.h:29
Definition: pfs_example_continent.h:119
Continent_index_by_name m_index
Definition: pfs_example_continent.h:129
Continent_POS m_next_pos
Definition: pfs_example_continent.h:123
Continent_POS m_pos
Definition: pfs_example_continent.h:121
unsigned int index_num
Definition: pfs_example_continent.h:132
Continent_record current_row
Definition: pfs_example_continent.h:126
Definition: pfs_example_continent.h:47
unsigned int name_length
Definition: pfs_example_continent.h:49
bool m_exist
Definition: pfs_example_continent.h:52
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:462
A structure to denote a key of type string in an index.
Definition: pfs_plugin_table_service.h:226
bool(* match_key_string)(bool record_null, const char *record_string_value, unsigned int record_string_length, PSI_plugin_key_string *key)
Definition: pfs_plugin_table_service.h:623
MySQL mutex implementation.
pthread_mutex_t native_mutex_t
Definition: thr_mutex_bits.h:55