MySQL 8.0.39
Source Code Documentation
pfs_example_continent.h File Reference

Go to the source code of this file.

Classes

struct  Continent_record
 
class  Continent_POS
 
class  Continent_index
 
class  Continent_index_by_name
 
struct  Continent_Table_Handle
 

Macros

#define CONTINENT_MAX_ROWS   10
 

Functions

PSI_table_handlecontinent_open_table (PSI_pos **pos)
 Instantiate Continent_Table_Handle at plugin code when corresponding table in performance schema is opened. More...
 
void continent_close_table (PSI_table_handle *handle)
 Destroy the Continent_Table_Handle at plugin code when corresponding table in performance schema is closed. More...
 
int continent_rnd_next (PSI_table_handle *handle)
 
int continent_rnd_init (PSI_table_handle *h, bool scan)
 
int continent_rnd_pos (PSI_table_handle *handle)
 
int continent_index_init (PSI_table_handle *handle, unsigned int idx, bool sorted, PSI_index_handle **index)
 
int continent_index_read (PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
 
int continent_index_next (PSI_table_handle *handle)
 
void continent_reset_position (PSI_table_handle *handle)
 
int continent_read_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int continent_write_row_values (PSI_table_handle *handle)
 
int continent_write_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int continent_update_row_values (PSI_table_handle *handle)
 
int continent_update_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int continent_delete_row_values (PSI_table_handle *handle)
 
int continent_delete_all_rows (void)
 
unsigned long long continent_get_row_count (void)
 
void init_continent_share (PFS_engine_table_share_proxy *share)
 
int write_rows_from_component (Continent_Table_Handle *h)
 

Variables

PFS_engine_table_share_proxy continent_st_share
 
native_mutex_t LOCK_continent_records_array
 
Continent_record continent_records_array [CONTINENT_MAX_ROWS]
 An array to keep rows of the tables. More...
 

Macro Definition Documentation

◆ CONTINENT_MAX_ROWS

#define CONTINENT_MAX_ROWS   10

Function Documentation

◆ continent_close_table()

void continent_close_table ( PSI_table_handle handle)

Destroy the Continent_Table_Handle at plugin code when corresponding table in performance schema is closed.

◆ continent_delete_all_rows()

int continent_delete_all_rows ( void  )

◆ continent_delete_row_values()

int continent_delete_row_values ( PSI_table_handle handle)

◆ continent_get_row_count()

unsigned long long continent_get_row_count ( void  )

◆ continent_index_init()

int continent_index_init ( PSI_table_handle handle,
unsigned int  idx,
bool  sorted,
PSI_index_handle **  index 
)

◆ continent_index_next()

int continent_index_next ( PSI_table_handle handle)

◆ continent_index_read()

int continent_index_read ( PSI_index_handle index,
PSI_key_reader reader,
unsigned int  idx,
int  find_flag 
)

◆ continent_open_table()

PSI_table_handle * continent_open_table ( PSI_pos **  pos)

Instantiate Continent_Table_Handle at plugin code when corresponding table in performance schema is opened.

◆ continent_read_column_value()

int continent_read_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ continent_reset_position()

void continent_reset_position ( PSI_table_handle handle)

◆ continent_rnd_init()

int continent_rnd_init ( PSI_table_handle h,
bool  scan 
)

◆ continent_rnd_next()

int continent_rnd_next ( PSI_table_handle handle)

◆ continent_rnd_pos()

int continent_rnd_pos ( PSI_table_handle handle)

◆ continent_update_column_value()

int continent_update_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ continent_update_row_values()

int continent_update_row_values ( PSI_table_handle handle)

◆ continent_write_column_value()

int continent_write_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ continent_write_row_values()

int continent_write_row_values ( PSI_table_handle handle)

◆ init_continent_share()

void init_continent_share ( PFS_engine_table_share_proxy share)

◆ write_rows_from_component()

int write_rows_from_component ( Continent_Table_Handle h)

Variable Documentation

◆ continent_records_array

Continent_record continent_records_array[CONTINENT_MAX_ROWS]
extern

An array to keep rows of the tables.

When a row is inserted in plugin table, it will be stored here. When a row is queried from plugin table, it will be fetched from here.

◆ continent_st_share

PFS_engine_table_share_proxy continent_st_share
extern

◆ LOCK_continent_records_array

native_mutex_t LOCK_continent_records_array
extern