MySQL 8.4.2
Source Code Documentation
pfs_example_continent.cc File Reference
#include <assert.h>
#include <cstring>
#include "pfs_example_continent.h"

Functions

int continent_delete_all_rows (void)
 
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...
 
static void copy_record (Continent_record *dest, Continent_record *source)
 
int continent_rnd_next (PSI_table_handle *handle)
 
int continent_rnd_init (PSI_table_handle *, bool)
 
int continent_rnd_pos (PSI_table_handle *handle)
 
int continent_index_init (PSI_table_handle *handle, unsigned int idx, bool, 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 write_rows_from_component (Continent_Table_Handle *handle)
 
unsigned long long continent_get_row_count (void)
 
void init_continent_share (PFS_engine_table_share_proxy *share)
 

Variables

PFS_engine_table_share_proxy continent_st_share
 
native_mutex_t LOCK_continent_records_array
 
unsigned int continent_rows_in_table = 0
 
unsigned int continent_next_available_index = 0
 
Continent_record continent_records_array [CONTINENT_MAX_ROWS] = {{"", 0, false}}
 An array to keep rows of the tables. More...
 

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_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)

◆ copy_record()

static void copy_record ( Continent_record dest,
Continent_record source 
)
static

◆ 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 handle)

Variable Documentation

◆ continent_next_available_index

unsigned int continent_next_available_index = 0

◆ continent_records_array

Continent_record continent_records_array[CONTINENT_MAX_ROWS] = {{"", 0, false}}

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_rows_in_table

unsigned int continent_rows_in_table = 0

◆ continent_st_share

PFS_engine_table_share_proxy continent_st_share

◆ LOCK_continent_records_array

native_mutex_t LOCK_continent_records_array