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