24#ifndef PLUGIN_PFS_TABLE_MACHINES_BY_EMP_BY_MTYPE_H_
25#define PLUGIN_PFS_TABLE_MACHINES_BY_EMP_BY_MTYPE_H_
75 void set_at(uint index_1, uint index_2) {
Definition: pfs_example_machines_by_emp_by_mtype.h:43
char l_name[EMPLOYEE_NAME_LEN]
Definition: pfs_example_machines_by_emp_by_mtype.h:47
unsigned int l_name_length
Definition: pfs_example_machines_by_emp_by_mtype.h:48
PSI_int count
Definition: pfs_example_machines_by_emp_by_mtype.h:50
char f_name[EMPLOYEE_NAME_LEN]
Definition: pfs_example_machines_by_emp_by_mtype.h:45
unsigned int f_name_length
Definition: pfs_example_machines_by_emp_by_mtype.h:46
bool m_exist
Definition: pfs_example_machines_by_emp_by_mtype.h:53
PSI_enum machine_type
Definition: pfs_example_machines_by_emp_by_mtype.h:49
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 EMPLOYEEE_NAME_MAX_ROWS
Definition: pfs_example_employee_name.h:42
#define EMPLOYEE_NAME_LEN
Definition: pfs_example_employee_name.h:39
@ TYPE_END
Definition: pfs_example_machine.h:46
int m_by_emp_by_mtype_index_next(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:155
void m_by_emp_by_mtype_reset_position(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:161
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:42
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:137
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:146
const mysql_service_pfs_plugin_column_enum_v1_t * col_enum_svc
Definition: pfs_example_plugin_employee.cc:100
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:26
const mysql_service_pfs_plugin_column_integer_v1_t * col_int_svc
Definition: pfs_example_plugin_employee.cc:90
const mysql_service_pfs_plugin_column_string_v2_t * col_string_svc
Definition: pfs_example_plugin_employee.cc:92
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:32
void init_m_by_emp_by_mtype_share(PFS_engine_table_share_proxy *share)
Definition: pfs_example_machines_by_emp_by_mtype.cc:198
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:169
unsigned long long m_by_emp_by_mtype_get_row_count(void)
Definition: pfs_example_machines_by_emp_by_mtype.cc:196
int m_by_emp_by_mtype_rnd_pos(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:124
int m_by_emp_by_mtype_rnd_init(PSI_table_handle *h, bool scan)
Definition: pfs_example_machines_by_emp_by_mtype.cc:118
int m_by_emp_by_mtype_rnd_next(PSI_table_handle *handle)
Definition: pfs_example_machines_by_emp_by_mtype.cc:75
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_machines_by_emp_by_mtype.h:122
POS_m_by_emp_by_mtype m_next_pos
Definition: pfs_example_machines_by_emp_by_mtype.h:126
POS_m_by_emp_by_mtype m_pos
Definition: pfs_example_machines_by_emp_by_mtype.h:124
M_by_emp_by_mtype_record current_row
Definition: pfs_example_machines_by_emp_by_mtype.h:129
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:57
bool has_more_employee()
Definition: pfs_example_machines_by_emp_by_mtype.h:103
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:84
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:75
unsigned int m_index_1
Outer index for employee.
Definition: pfs_example_machines_by_emp_by_mtype.h:59
void next_employee()
Definition: pfs_example_machines_by_emp_by_mtype.h:115
unsigned int m_index_2
Current index within index_1, for machine type.
Definition: pfs_example_machines_by_emp_by_mtype.h:61
bool has_more_machine_type()
Definition: pfs_example_machines_by_emp_by_mtype.h:108
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:98
POS_m_by_emp_by_mtype(uint index_1, uint index_2)
Constructor.
Definition: pfs_example_machines_by_emp_by_mtype.h:68
POS_m_by_emp_by_mtype()
Definition: pfs_example_machines_by_emp_by_mtype.h:71
void next_machine_type()
Definition: pfs_example_machines_by_emp_by_mtype.h:113
void reset()
Definition: pfs_example_machines_by_emp_by_mtype.h:89