24#ifndef PLUGIN_PFS_TABLE_PLUGIN_pfs_example_employee_MACHINE_H_
25#define PLUGIN_PFS_TABLE_PLUGIN_pfs_example_employee_MACHINE_H_
49#define MACHINE_MADE_LEN 20 * 4
116 unsigned int idx,
int find_flag);
Definition: pfs_example_machine.h:72
void set_at(unsigned int index)
Definition: pfs_example_machine.h:90
void reset()
Definition: pfs_example_machine.h:86
unsigned int get_index()
Definition: pfs_example_machine.h:88
unsigned int m_index
Definition: pfs_example_machine.h:74
bool has_more()
Definition: pfs_example_machine.h:80
void set_at(Machine_POS *pos)
Definition: pfs_example_machine.h:92
Machine_POS()
Definition: pfs_example_machine.h:78
void next()
Definition: pfs_example_machine.h:84
void set_after(Machine_POS *pos)
Definition: pfs_example_machine.h:94
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
void machine_reset_position(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:128
std::vector< Machine_Record > machine_records_vector
An array to keep rows of the tables.
Definition: pfs_example_machine.cc:34
void init_machine_share(PFS_engine_table_share_proxy *share)
Definition: pfs_example_machine.cc:289
const mysql_service_pfs_plugin_column_enum_v1_t * col_enum_svc
Definition: pfs_example_plugin_employee.cc:100
int machine_update_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: pfs_example_machine.cc:234
int machine_write_row_values(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:163
PFS_engine_table_share_proxy machine_st_share
Definition: pfs_example_machine.cc:28
int machine_rnd_next(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:71
const mysql_service_pfs_plugin_column_integer_v1_t * col_int_svc
Definition: pfs_example_plugin_employee.cc:90
int machine_rnd_pos(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:92
void machine_close_table(PSI_table_handle *handle)
Destroy the Machine_Table_Handle at plugin code when corresponding table in performance schema is clo...
Definition: pfs_example_machine.cc:55
const mysql_service_pfs_plugin_column_string_v2_t * col_string_svc
Definition: pfs_example_plugin_employee.cc:92
int machine_index_init(PSI_table_handle *handle, uint idx, bool sorted, PSI_index_handle **index)
Definition: pfs_example_machine.cc:105
machine_type_enum
Definition: pfs_example_machine.h:46
@ LAPTOP
Definition: pfs_example_machine.h:46
@ DESKTOP
Definition: pfs_example_machine.h:46
@ TYPE_END
Definition: pfs_example_machine.h:46
@ MOBILE
Definition: pfs_example_machine.h:46
int machine_read_column_value(PSI_table_handle *handle, PSI_field *field, uint index)
Definition: pfs_example_machine.cc:136
int machine_rnd_init(PSI_table_handle *h, bool scan)
Definition: pfs_example_machine.cc:87
mysql_mutex_t LOCK_machine_records_array
Definition: pfs_example_machine.cc:29
unsigned long long machine_get_row_count(void)
Definition: pfs_example_machine.cc:287
int machine_delete_all_rows(void)
Definition: pfs_example_machine.cc:279
int machine_index_next(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:122
int machine_update_row_values(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:220
int machine_delete_row_values(PSI_table_handle *handle)
Definition: pfs_example_machine.cc:264
#define MACHINE_MADE_LEN
Definition: pfs_example_machine.h:49
int machine_index_read(PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
Definition: pfs_example_machine.cc:113
PSI_table_handle * machine_open_table(PSI_pos **pos)
Instantiate Machine_Table_Handle at plugin code when corresponding table in performance schema is ope...
Definition: pfs_example_machine.cc:40
int machine_write_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: pfs_example_machine.cc:190
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
#define PSI_int
Definition: pfs_plugin_table_service.h:148
#define PSI_enum
Definition: pfs_plugin_table_service.h:153
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
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
Specifies macros to define Service Implementations.
Definition: pfs_example_machine.h:52
PSI_int employee_number
Definition: pfs_example_machine.h:58
PSI_enum machine_type
Definition: pfs_example_machine.h:55
bool m_exist
Definition: pfs_example_machine.h:61
PSI_int machine_number
Definition: pfs_example_machine.h:54
char machine_made[MACHINE_MADE_LEN]
Definition: pfs_example_machine.h:56
unsigned int machine_made_length
Definition: pfs_example_machine.h:57
Definition: pfs_example_machine.h:98
Machine_Record current_row
Definition: pfs_example_machine.h:105
Machine_POS m_pos
Definition: pfs_example_machine.h:100
Machine_POS m_next_pos
Definition: pfs_example_machine.h:102
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
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50