MySQL
8.0.40
Source Code Documentation
row_group_dump_task.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2015, 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
26
#ifndef ROW_GROUP_DUMP_TASK_INCLUDED
27
#define ROW_GROUP_DUMP_TASK_INCLUDED
28
29
#include <vector>
30
31
#include "
client/dump/abstract_simple_dump_task.h
"
32
#include "
client/dump/mysql_field.h
"
33
#include "
client/dump/row.h
"
34
#include "
client/dump/table.h
"
35
36
namespace
Mysql
{
37
namespace
Tools {
38
namespace
Dump {
39
40
/**
41
Represents single data row.
42
*/
43
class
Row_group_dump_task
:
public
Abstract_simple_dump_task
{
44
public
:
45
Row_group_dump_task
(
Table
*source_table,
46
const
std::vector<Mysql_field> &fields,
47
const
bool
has_generated_column,
48
const
bool
has_invisible_columns);
49
50
I_data_object
*
get_related_db_object
()
const override
;
51
52
bool
can_be_executed
()
const override
;
53
54
void
set_completed
()
override
;
55
56
/**
57
Returns a table the rows are contained in.
58
*/
59
const
Table
*
m_source_table
;
60
/**
61
Contains all fields information.
62
*/
63
const
std::vector<Mysql_field> &
m_fields
;
64
/**
65
Returns all rows.
66
*/
67
std::vector<Row *>
m_rows
;
68
/**
69
Contains generated/virtual fields.
70
*/
71
const
bool
m_has_generated_columns
;
72
/**
73
Contains invisible columns.
74
*/
75
const
bool
m_has_invisible_columns
;
76
};
77
78
}
// namespace Dump
79
}
// namespace Tools
80
}
// namespace Mysql
81
82
#endif
abstract_simple_dump_task.h
Mysql::Tools::Dump::Abstract_simple_dump_task
Base class for all individual dump process tasks.
Definition:
abstract_simple_dump_task.h:40
Mysql::Tools::Dump::I_data_object
Definition:
i_data_object.h:33
Mysql::Tools::Dump::Row_group_dump_task
Represents single data row.
Definition:
row_group_dump_task.h:43
Mysql::Tools::Dump::Row_group_dump_task::m_source_table
const Table * m_source_table
Returns a table the rows are contained in.
Definition:
row_group_dump_task.h:59
Mysql::Tools::Dump::Row_group_dump_task::Row_group_dump_task
Row_group_dump_task(Table *source_table, const std::vector< Mysql_field > &fields, const bool has_generated_column, const bool has_invisible_columns)
Definition:
row_group_dump_task.cc:48
Mysql::Tools::Dump::Row_group_dump_task::get_related_db_object
I_data_object * get_related_db_object() const override
Definition:
row_group_dump_task.cc:44
Mysql::Tools::Dump::Row_group_dump_task::set_completed
void set_completed() override
Sets task completed flag.
Definition:
row_group_dump_task.cc:32
Mysql::Tools::Dump::Row_group_dump_task::m_fields
const std::vector< Mysql_field > & m_fields
Contains all fields information.
Definition:
row_group_dump_task.h:63
Mysql::Tools::Dump::Row_group_dump_task::can_be_executed
bool can_be_executed() const override
Returns true if task can start processing, for example when all dependencies are met.
Definition:
row_group_dump_task.cc:42
Mysql::Tools::Dump::Row_group_dump_task::m_has_invisible_columns
const bool m_has_invisible_columns
Contains invisible columns.
Definition:
row_group_dump_task.h:75
Mysql::Tools::Dump::Row_group_dump_task::m_has_generated_columns
const bool m_has_generated_columns
Contains generated/virtual fields.
Definition:
row_group_dump_task.h:71
Mysql::Tools::Dump::Row_group_dump_task::m_rows
std::vector< Row * > m_rows
Returns all rows.
Definition:
row_group_dump_task.h:67
Mysql::Tools::Dump::Table
Definition:
table.h:40
row.h
table.h
mysql_field.h
Mysql
Definition:
abstract_connection_program.h:38
client
dump
row_group_dump_task.h
Generated by
1.9.2