MySQL 8.4.0
Source Code Documentation
table_communication_information.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
25
26#ifndef GROUP_REPLICATION_TABLE_COMMUNICATION_INFORMATION_H
27#define GROUP_REPLICATION_TABLE_COMMUNICATION_INFORMATION_H
28
29namespace gr {
30namespace perfschema {
31
33 public:
36
37 bool init() override;
38 bool deinit() override;
39
40 static unsigned long long get_row_count();
41 static int rnd_next(PSI_table_handle *handle);
42 static int rnd_init(PSI_table_handle *handle [[maybe_unused]],
43 bool scan [[maybe_unused]]);
44 static int rnd_pos(PSI_table_handle *handle [[maybe_unused]]);
47 unsigned int index [[maybe_unused]]);
48 static PSI_table_handle *open_table(PSI_pos **pos);
50
51 static constexpr int SUCCESS = 0;
52 static constexpr unsigned long long NR_ROWS{1};
53};
54
55} // namespace perfschema
56} // namespace gr
57
58#endif /* GROUP_REPLICATION_TABLE_COMMUNICATION_INFORMATION_H */
Definition: table_communication_information.h:32
bool deinit() override
Definition: table_communication_information.cc:340
static void close_table(PSI_table_handle *handle)
Definition: table_communication_information.cc:331
static int rnd_init(PSI_table_handle *handle, bool scan)
Definition: table_communication_information.cc:226
static int rnd_pos(PSI_table_handle *handle)
Definition: table_communication_information.cc:232
static void reset_position(PSI_table_handle *handle)
Definition: table_communication_information.cc:237
static unsigned long long get_row_count()
Definition: table_communication_information.cc:203
static constexpr int SUCCESS
Definition: table_communication_information.h:51
bool init() override
Definition: table_communication_information.cc:342
static constexpr unsigned long long NR_ROWS
Definition: table_communication_information.h:52
static PSI_table_handle * open_table(PSI_pos **pos)
Definition: table_communication_information.cc:321
static int rnd_next(PSI_table_handle *handle)
Definition: table_communication_information.cc:207
static int read_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: table_communication_information.cc:244
Definition: group_replication_priv.h:44
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
struct PSI_table_handle PSI_table_handle
This is an opaque structure to denote table handle in plugin/component code.
Definition: pfs_plugin_table_service.h:97
struct PSI_pos PSI_pos
This is an opaque structure to denote cursor position in plugin/component code.
Definition: pfs_plugin_table_service.h:102
struct PSI_field PSI_field
This is an opaque structure to denote filed in plugin/component code.
Definition: pfs_plugin_table_service.h:93