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
33#include "client/dump/row.h"
34#include "client/dump/table.h"
35
36namespace Mysql {
37namespace Tools {
38namespace Dump {
39
40/**
41 Represents single data row.
42 */
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 */
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 */
72 /**
73 Contains invisible columns.
74 */
76};
77
78} // namespace Dump
79} // namespace Tools
80} // namespace Mysql
81
82#endif
Base class for all individual dump process tasks.
Definition: abstract_simple_dump_task.h:40
Definition: i_data_object.h:33
Represents single data row.
Definition: row_group_dump_task.h:43
const Table * m_source_table
Returns a table the rows are contained in.
Definition: row_group_dump_task.h:59
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
I_data_object * get_related_db_object() const override
Definition: row_group_dump_task.cc:44
void set_completed() override
Sets task completed flag.
Definition: row_group_dump_task.cc:32
const std::vector< Mysql_field > & m_fields
Contains all fields information.
Definition: row_group_dump_task.h:63
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
const bool m_has_invisible_columns
Contains invisible columns.
Definition: row_group_dump_task.h:75
const bool m_has_generated_columns
Contains generated/virtual fields.
Definition: row_group_dump_task.h:71
std::vector< Row * > m_rows
Returns all rows.
Definition: row_group_dump_task.h:67
Definition: table.h:40
Definition: abstract_connection_program.h:38