24#ifndef CURSOR_BY_THREAD_H
25#define CURSOR_BY_THREAD_H
61 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:299
Definition: pfs_engine_table.h:267
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: cursor_by_thread.h:41
virtual bool match(PFS_thread *pfs)=0
PFS_index_threads(PFS_engine_key *key_1)
Definition: cursor_by_thread.h:43
PFS_index_threads(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: cursor_by_thread.h:45
~PFS_index_threads() override=default
Cursor CURSOR_BY_THREAD.
Definition: cursor_by_thread.h:54
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: cursor_by_thread.cc:62
int rnd_next() override
Fetch the next row in this cursor.
Definition: cursor_by_thread.cc:48
static ha_rows get_row_count()
Definition: cursor_by_thread.cc:36
~cursor_by_thread() override=default
PFS_simple_index m_pos
Current position.
Definition: cursor_by_thread.h:76
PFS_index_threads * m_opened_index
Definition: cursor_by_thread.h:81
PFS_simple_index m_next_pos
Next position.
Definition: cursor_by_thread.h:78
int index_next() override
Find key in index, read record.
Definition: cursor_by_thread.cc:75
cursor_by_thread(const PFS_engine_table_share *share)
Definition: cursor_by_thread.cc:40
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:43
my_off_t ha_rows
Definition: my_base.h:1139
Performance schema tables (declarations).
Performance schema instruments (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Instrumented thread implementation.
Definition: pfs_instr.h:372
Helpers to implement a performance schema table.