25#ifndef CURSOR_BY_THREAD_H
26#define CURSOR_BY_THREAD_H
62 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:300
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: cursor_by_thread.h:42
virtual bool match(PFS_thread *pfs)=0
PFS_index_threads(PFS_engine_key *key_1)
Definition: cursor_by_thread.h:44
PFS_index_threads(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: cursor_by_thread.h:46
~PFS_index_threads() override=default
Cursor CURSOR_BY_THREAD.
Definition: cursor_by_thread.h:55
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: cursor_by_thread.cc:63
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_thread.cc:49
static ha_rows get_row_count()
Definition: cursor_by_thread.cc:37
~cursor_by_thread() override=default
PFS_simple_index m_pos
Current position.
Definition: cursor_by_thread.h:77
PFS_index_threads * m_opened_index
Definition: cursor_by_thread.h:82
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_thread.h:79
int index_next() override
Find key in index, read record.
Definition: cursor_by_thread.cc:76
cursor_by_thread(const PFS_engine_table_share *share)
Definition: cursor_by_thread.cc:41
virtual int make_row(PFS_thread *thread)=0
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: cursor_by_thread.cc:44
my_off_t ha_rows
Definition: my_base.h:1141
Performance schema tables (declarations).
Performance schema instruments (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Instrumented thread implementation.
Definition: pfs_instr.h:375
Helpers to implement a performance schema table.