MySQL 8.1.0
Source Code Documentation
table_binary_log_transaction_compression_stats.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2019, 2023, Oracle and/or its affiliates.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License, version 2.0,
6 as published by the Free Software Foundation.
7
8 This program is also distributed with certain software (including
9 but not limited to OpenSSL) that is licensed under separate terms,
10 as designated in a particular file or component or in included license
11 documentation. The authors of MySQL hereby grant you an additional
12 permission to link the program and your derivative works with the
13 separately licensed software that they have included with MySQL.
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, version 2.0, 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
24#ifndef TABLE_BINARY_LOG_TRANSACTION_COMPRESSION_STATS_H
25#define TABLE_BINARY_LOG_TRANSACTION_COMPRESSION_STATS_H
26
27/**
28 @file storage/perfschema/table_binary_log_transaction_compression_stats.h
29 Table table_binary_log_transaction_compression_stats (declarations).
30*/
31
32#include <stddef.h>
33#include <sys/types.h>
34#include <string>
35
36#include "my_base.h"
37#include "my_inttypes.h"
38#include "mysql_com.h"
39#include "sql/rpl_gtid.h"
40#include "sql/rpl_info.h"
41#include "sql/sql_const.h" // UUID_LENGTH
43
44class Field;
45class Plugin_table;
46struct TABLE;
47struct THR_LOCK;
48
49/**
50 @addtogroup performance_schema_tables
51 @{
52*/
53
54/** Table PERFORMANCE_SCHEMA.BINARY_LOG_TRANSACTION_COMPRESSION_STATS. */
57
58 private:
59 int make_row();
60
61 /** Table share lock. */
63 /** Table definition. */
65
66 /** Current position. */
68 /** Next position. */
70
71 protected:
72 /**
73 Read the current row values.
74 @param table Table handle
75 @param buf row buffer
76 @param fields Table fields
77 @param read_all true if all columns are read.
78 */
79
80 int read_row_values(TABLE *table, unsigned char *buf, Field **fields,
81 bool read_all) override;
82
84
85 public:
87
88 /** Table share. */
91 static ha_rows get_row_count();
92 static int delete_all_rows();
93 int rnd_next() override;
94 int rnd_pos(const void *pos) override;
95 void reset_position() override;
96};
97
98/** @} */
99#endif
Definition: field.h:575
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.BINARY_LOG_TRANSACTION_COMPRESSION_STATS.
Definition: table_binary_log_transaction_compression_stats.h:55
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_binary_log_transaction_compression_stats.cc:185
static int delete_all_rows()
Definition: table_binary_log_transaction_compression_stats.cc:169
pos_t m_pos
Current position.
Definition: table_binary_log_transaction_compression_stats.h:67
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_binary_log_transaction_compression_stats.cc:174
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_binary_log_transaction_compression_stats.cc:195
table_binary_log_transaction_compression_stats()
Definition: table_binary_log_transaction_compression_stats.cc:154
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_binary_log_transaction_compression_stats.cc:160
static THR_LOCK m_table_lock
Table share lock.
Definition: table_binary_log_transaction_compression_stats.h:62
static PFS_engine_table_share m_share
Table share.
Definition: table_binary_log_transaction_compression_stats.h:89
pos_t m_next_pos
Next position.
Definition: table_binary_log_transaction_compression_stats.h:69
PFS_simple_index pos_t
Definition: table_binary_log_transaction_compression_stats.h:56
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_binary_log_transaction_compression_stats.cc:148
static Plugin_table m_table_def
Table definition.
Definition: table_binary_log_transaction_compression_stats.h:64
static ha_rows get_row_count()
Definition: table_binary_log_transaction_compression_stats.cc:165
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Some integer typedefs for easier portability.
Common definition between mysql server & client.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
File containing constants that can be used throughout the server.
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Definition: table.h:1394
Definition: thr_lock.h:138