23#ifndef PLUGIN_PFS_TABLE_MACHINES_BY_EMP_BY_MTYPE_H_
24#define PLUGIN_PFS_TABLE_MACHINES_BY_EMP_BY_MTYPE_H_
74 void set_at(uint index_1, uint index_2) {
Definition: pfs_example_machines_by_emp_by_mtype.h:42
char l_name[EMPLOYEE_NAME_LEN]
Definition: pfs_example_machines_by_emp_by_mtype.h:46
unsigned int l_name_length
Definition: pfs_example_machines_by_emp_by_mtype.h:47
PSI_int count
Definition: pfs_example_machines_by_emp_by_mtype.h:49
char f_name[EMPLOYEE_NAME_LEN]
Definition: pfs_example_machines_by_emp_by_mtype.h:44
unsigned int f_name_length
Definition: pfs_example_machines_by_emp_by_mtype.h:45
bool m_exist
Definition: pfs_example_machines_by_emp_by_mtype.h:52
PSI_enum machine_type
Definition: pfs_example_machines_by_emp_by_mtype.h:48
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:63
#define EMPLOYEEE_NAME_MAX_ROWS
Definition: pfs_example_employee_name.h:41
#define EMPLOYEE_NAME_LEN
Definition: pfs_example_employee_name.h:38
@ TYPE_END
Definition: pfs_example_machine.h:45
int m_by_emp_by_mtype_index_next(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:154
void m_by_emp_by_mtype_reset_position(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:160
int m_by_emp_by_mtype_write_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
void m_by_emp_by_mtype_close_table(PSI_table_handle *handle)
Destroy the Table_Handle at plugin code when corresponding table in performance schema is closed.
Definition: pfs_example_machines_by_emp_by_mtype.cc:41
int m_by_emp_by_mtype_index_init(PSI_table_handle *handle, uint idx, bool sorted, PSI_index_handle **index)
Definition: pfs_example_machines_by_emp_by_mtype.cc:136
int m_by_emp_by_mtype_index_read(PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
Definition: pfs_example_machines_by_emp_by_mtype.cc:145
const mysql_service_pfs_plugin_column_enum_v1_t * col_enum_svc
Definition: pfs_example_plugin_employee.cc:99
int m_by_emp_by_mtype_write_row_values(PSI_table_handle *handle)
int m_by_emp_by_mtype_update_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
PFS_engine_table_share_proxy m_by_emp_by_mtype_st_share
Definition: pfs_example_machines_by_emp_by_mtype.cc:25
const mysql_service_pfs_plugin_column_integer_v1_t * col_int_svc
Definition: pfs_example_plugin_employee.cc:89
const mysql_service_pfs_plugin_column_string_v2_t * col_string_svc
Definition: pfs_example_plugin_employee.cc:91
PSI_table_handle * m_by_emp_by_mtype_open_table(PSI_pos **pos)
Instantiate Table_Handle at plugin code when corresponding table in performance schema is opened.
Definition: pfs_example_machines_by_emp_by_mtype.cc:31
void init_m_by_emp_by_mtype_share(PFS_engine_table_share_proxy *share)
Definition: pfs_example_machines_by_emp_by_mtype.cc:197
int m_by_emp_by_mtype_delete_all_rows(void)
int m_by_emp_by_mtype_delete_row_values(PSI_table_handle *handle)
int m_by_emp_by_mtype_update_row_values(PSI_table_handle *handle)
int m_by_emp_by_mtype_read_column_value(PSI_table_handle *handle, PSI_field *field, uint index)
Definition: pfs_example_machines_by_emp_by_mtype.cc:168
unsigned long long m_by_emp_by_mtype_get_row_count(void)
Definition: pfs_example_machines_by_emp_by_mtype.cc:195
int m_by_emp_by_mtype_rnd_pos(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:123
int m_by_emp_by_mtype_rnd_init(PSI_table_handle *h, bool scan)
Definition: pfs_example_machines_by_emp_by_mtype.cc:117
int m_by_emp_by_mtype_rnd_next(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:74
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
#define PSI_int
Definition: pfs_plugin_table_service.h:147
#define PSI_enum
Definition: pfs_plugin_table_service.h:152
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
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:75
Specifies macros to define Service Implementations.
Definition: pfs_example_machines_by_emp_by_mtype.h:121
POS_m_by_emp_by_mtype m_next_pos
Definition: pfs_example_machines_by_emp_by_mtype.h:125
POS_m_by_emp_by_mtype m_pos
Definition: pfs_example_machines_by_emp_by_mtype.h:123
M_by_emp_by_mtype_record current_row
Definition: pfs_example_machines_by_emp_by_mtype.h:128
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
Definition: pfs_example_machines_by_emp_by_mtype.h:56
bool has_more_employee()
Definition: pfs_example_machines_by_emp_by_mtype.h:102
void set_at(const POS_m_by_emp_by_mtype *other)
Set this index at a given position.
Definition: pfs_example_machines_by_emp_by_mtype.h:83
void set_at(uint index_1, uint index_2)
Set this index at a given position.
Definition: pfs_example_machines_by_emp_by_mtype.h:74
unsigned int m_index_1
Outer index for employee.
Definition: pfs_example_machines_by_emp_by_mtype.h:58
void next_employee()
Definition: pfs_example_machines_by_emp_by_mtype.h:114
unsigned int m_index_2
Current index within index_1, for machine type.
Definition: pfs_example_machines_by_emp_by_mtype.h:60
bool has_more_machine_type()
Definition: pfs_example_machines_by_emp_by_mtype.h:107
void set_after(const POS_m_by_emp_by_mtype *other)
Set this index after a given position.
Definition: pfs_example_machines_by_emp_by_mtype.h:97
POS_m_by_emp_by_mtype(uint index_1, uint index_2)
Constructor.
Definition: pfs_example_machines_by_emp_by_mtype.h:67
POS_m_by_emp_by_mtype()
Definition: pfs_example_machines_by_emp_by_mtype.h:70
void next_machine_type()
Definition: pfs_example_machines_by_emp_by_mtype.h:112
void reset()
Definition: pfs_example_machines_by_emp_by_mtype.h:88