MySQL 8.0.30
Source Code Documentation
raw_record_set.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2022, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD__RAW_RECORD_SET_INCLUDED
24#define DD__RAW_RECORD_SET_INCLUDED
25
26#include <stddef.h>
27
28#include "sql/dd/impl/raw/raw_record.h" // dd::Raw_record
29
30struct TABLE;
31
32namespace dd {
33
34///////////////////////////////////////////////////////////////////////////
35
36struct Raw_key;
37
38///////////////////////////////////////////////////////////////////////////
39
40class Raw_record_set : private Raw_record {
41 public:
43
45
46 bool next(Raw_record *&r);
47
48 private:
49 // Note: The 'key' supplied will be freed by Raw_record_set
52
53 bool open();
54
55 friend class Raw_table;
56
57 private:
58 // Raw_record_set owns m_key.
60
62};
63
64///////////////////////////////////////////////////////////////////////////
65
66} // namespace dd
67
68#endif // DD__RAW_RECORD_SET_INCLUDED
Definition: raw_record_set.h:40
Raw_record_set(TABLE *table, Raw_key *key)
Definition: raw_record_set.h:50
~Raw_record_set()
Definition: raw_record_set.cc:139
Raw_record * m_current_record
Definition: raw_record_set.h:61
bool next(Raw_record *&r)
Move to next record in DD table that matches the supplied key.
Definition: raw_record_set.cc:100
bool open()
Initializes the table scan operation.
Definition: raw_record_set.cc:48
Raw_record * current_record()
Definition: raw_record_set.h:44
Raw_key * m_key
Definition: raw_record_set.h:59
Definition: raw_record.h:45
Definition: raw_table.h:43
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:221
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:85
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Definition: table.h:1394
Definition: raw_key.h:33