MySQL 26.10.0
Source Code Documentation
table_system_disk_stats_base.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2026, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef TABLE_SYSTEM_DISK_STATS_BASE_INCLUDED
25#define TABLE_SYSTEM_DISK_STATS_BASE_INCLUDED
26
28
32#include "table_base.h"
33
34namespace hm {
35
36// clang-format off
37
39 public:
41
42 int rnd_next() override;
43 int rnd_pos() override;
44 int read_column_value(PSI_field *field, unsigned int index) override;
45 virtual void make_row(const System_Disk_Stats &record);
46
47 protected:
49 std::shared_ptr<Stat_Buffer<System_Disk_Stats>> m_buffer;
50};
51
54 Access_control acl);
55
56// clang-format on
57
58} // namespace hm
59
60#endif // TABLE_SYSTEM_DISK_STATS_BASE_INCLUDED
Definition: table_base.h:43
Definition: table_system_disk_stats_base.h:38
int read_column_value(PSI_field *field, unsigned int index) override
Definition: table_system_disk_stats_base.cc:59
int rnd_next() override
Definition: table_system_disk_stats_base.cc:35
virtual void make_row(const System_Disk_Stats &record)
Definition: table_system_disk_stats_base.cc:55
int rnd_pos() override
Definition: table_system_disk_stats_base.cc:46
std::shared_ptr< Stat_Buffer< System_Disk_Stats > > m_buffer
Definition: table_system_disk_stats_base.h:49
System_Disk_Table_Row row_t
Definition: table_system_disk_stats_base.h:40
row_t m_row
Definition: table_system_disk_stats_base.h:48
static int record
Definition: mysqltest.cc:195
static PFS_engine_table_share_proxy share
Definition: connection_control_pfs_table.cc:95
bool index(const std::string &value, const String &search_for, uint32_t *idx)
Definition: contains.h:76
Definition: component_command.h:29
PFS_engine_table_share_proxy * table_system_disk_stats_base_init(PFS_engine_table_share_proxy &share, const char *table_name, Access_control acl)
Definition: table_system_disk_stats_base.cc:116
const char * table_name
Definition: rules_table_service.cc:56
Access_control
Types of access allowed to tables.
Definition: pfs_plugin_table_service.h:435
struct PSI_field PSI_field
This is an opaque structure to denote field in plugin/component code.
Definition: pfs_plugin_table_service.h:93
A share to be initialized by plugin/component code and to be provided to add_table() service method o...
Definition: pfs_plugin_table_service.h:462
Definition: health_monitor_system_bits.h:48
Definition: health_monitor_storage_mapping.h:36