MySQL 8.0.39
Source Code Documentation
table_binary_log_transaction_compression_stats.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2019, 2024, 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 designed to work 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 either included with
14 the program or referenced in the documentation.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License, version 2.0, for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
24
25#ifndef TABLE_BINARY_LOG_TRANSACTION_COMPRESSION_STATS_H
26#define TABLE_BINARY_LOG_TRANSACTION_COMPRESSION_STATS_H
27
28/**
29 @file storage/perfschema/table_binary_log_transaction_compression_stats.h
30 Table table_binary_log_transaction_compression_stats (declarations).
31*/
32
33#include <stddef.h>
34#include <sys/types.h>
35#include <string>
36
37#include "my_base.h"
38#include "my_inttypes.h"
39#include "mysql_com.h"
40#include "sql/rpl_gtid.h"
41#include "sql/rpl_info.h"
42#include "sql/sql_const.h" // UUID_LENGTH
44
45class Field;
46class Plugin_table;
47struct TABLE;
48struct THR_LOCK;
49
50/**
51 @addtogroup performance_schema_tables
52 @{
53*/
54
55/** Table PERFORMANCE_SCHEMA.BINARY_LOG_TRANSACTION_COMPRESSION_STATS. */
58
59 private:
60 int make_row();
61
62 /** Table share lock. */
64 /** Table definition. */
66
67 /** Current position. */
69 /** Next position. */
71
72 protected:
73 /**
74 Read the current row values.
75 @param table Table handle
76 @param buf row buffer
77 @param fields Table fields
78 @param read_all true if all columns are read.
79 */
80
81 int read_row_values(TABLE *table, unsigned char *buf, Field **fields,
82 bool read_all) override;
83
85
86 public:
88
89 /** Table share. */
92 static ha_rows get_row_count();
93 static int delete_all_rows();
94 int rnd_next() override;
95 int rnd_pos(const void *pos) override;
96 void reset_position() override;
97};
98
99/** @} */
100#endif
Definition: field.h:575
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.BINARY_LOG_TRANSACTION_COMPRESSION_STATS.
Definition: table_binary_log_transaction_compression_stats.h:56
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_binary_log_transaction_compression_stats.cc:186
static int delete_all_rows()
Definition: table_binary_log_transaction_compression_stats.cc:170
pos_t m_pos
Current position.
Definition: table_binary_log_transaction_compression_stats.h:68
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_binary_log_transaction_compression_stats.cc:175
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:196
table_binary_log_transaction_compression_stats()
Definition: table_binary_log_transaction_compression_stats.cc:155
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_binary_log_transaction_compression_stats.cc:161
static THR_LOCK m_table_lock
Table share lock.
Definition: table_binary_log_transaction_compression_stats.h:63
static PFS_engine_table_share m_share
Table share.
Definition: table_binary_log_transaction_compression_stats.h:90
pos_t m_next_pos
Next position.
Definition: table_binary_log_transaction_compression_stats.h:70
PFS_simple_index pos_t
Definition: table_binary_log_transaction_compression_stats.h:57
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_binary_log_transaction_compression_stats.cc:149
static Plugin_table m_table_def
Table definition.
Definition: table_binary_log_transaction_compression_stats.h:65
static ha_rows get_row_count()
Definition: table_binary_log_transaction_compression_stats.cc:166
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
Common definition between mysql server & client.
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
File containing constants that can be used throughout the server.
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Definition: table.h:1399
Definition: thr_lock.h:139