24#ifndef TABLE_USER_DEFINED_FUNCTIONS_H
25#define TABLE_USER_DEFINED_FUNCTIONS_H
105 int rnd_pos(
const void *pos)
override;
107 int index_init(uint idx,
bool sorted)
override;
112 bool read_all)
override;
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_user_defined_functions.h:81
PFS_index_user_defined_functions_by_name()
Definition: table_user_defined_functions.h:83
PFS_key_name m_key
Definition: table_user_defined_functions.h:91
~PFS_index_user_defined_functions_by_name() override=default
bool match(const row_user_defined_functions *row) override
Definition: table_user_defined_functions.cc:72
Definition: table_user_defined_functions.h:70
PFS_index_user_defined_functions(PFS_engine_key *key_1)
Definition: table_user_defined_functions.h:72
virtual bool match(const row_user_defined_functions *row)=0
~PFS_index_user_defined_functions() override=default
Definition: table_helper.h:1569
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Table PERFORMANCE_SCHEMA.USER_DEFINED_FUNCTIONS.
Definition: table_user_defined_functions.h:95
void materialize(THD *thd)
Definition: table_user_defined_functions.cc:123
static int make_row(const udf_func *entry, row_user_defined_functions *row)
Definition: table_user_defined_functions.cc:155
static ha_rows get_row_count()
Definition: table_user_defined_functions.cc:93
int index_init(uint idx, bool sorted) override
Definition: table_user_defined_functions.cc:231
~table_user_defined_functions() override=default
int index_next() override
Find key in index, read record.
Definition: table_user_defined_functions.cc:248
row_user_defined_functions * m_row
Current row.
Definition: table_user_defined_functions.h:129
static THR_LOCK m_table_lock
Table share lock.
Definition: table_user_defined_functions.h:124
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_user_defined_functions.cc:207
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_user_defined_functions.cc:224
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_user_defined_functions.cc:263
uint m_row_count
Definition: table_user_defined_functions.h:127
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_user_defined_functions.cc:82
static void materialize_udf_funcs(udf_func *udf, void *arg)
Definition: table_user_defined_functions.cc:115
PFS_simple_index m_pos
Current position.
Definition: table_user_defined_functions.h:131
PFS_index_user_defined_functions * m_opened_index
Definition: table_user_defined_functions.h:135
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_user_defined_functions.cc:202
static Plugin_table m_table_def
Table definition.
Definition: table_user_defined_functions.h:138
PFS_simple_index m_next_pos
Next position.
Definition: table_user_defined_functions.h:133
table_user_defined_functions()
Definition: table_user_defined_functions.cc:101
row_user_defined_functions * m_all_rows
Definition: table_user_defined_functions.h:126
static PFS_engine_table_share m_share
Table share.
Definition: table_user_defined_functions.h:98
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Common definition between mysql server & client.
#define NAME_CHAR_LEN
Field/table name length.
Definition: mysql_com.h:60
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: thr_lock.h:139
Definition: completion_hash.h:35
A row of PERFORMANCE_SCHEMA.USER_DEFINED_FUNCTIONS.
Definition: table_user_defined_functions.h:53
uint m_return_type_length
Definition: table_user_defined_functions.h:59
char m_name[NAME_CHAR_LEN+1]
Column UDF_NAME.
Definition: table_user_defined_functions.h:55
uint m_type_length
Definition: table_user_defined_functions.h:62
char m_library[1024]
Column UDF_LIBRARY.
Definition: table_user_defined_functions.h:64
ulonglong m_usage_count
Column UDF_USAGE_COUNT.
Definition: table_user_defined_functions.h:67
const char * m_type
Column UDF_TYPE.
Definition: table_user_defined_functions.h:61
const char * m_return_type
Column UDF_RETURN_TYPE.
Definition: table_user_defined_functions.h:58
uint m_library_length
Definition: table_user_defined_functions.h:65
uint m_name_length
Definition: table_user_defined_functions.h:56
Helpers to implement a performance schema table.