#include <rpl_sys_key_access.h>
◆ enum_key_type
Enumerator |
---|
RND_NEXT | |
RND_POS | |
INDEX_NEXT_SAME | |
INDEX_NEXT | |
◆ Rpl_sys_key_access()
Rpl_sys_key_access::Rpl_sys_key_access |
( |
| ) |
|
|
default |
◆ ~Rpl_sys_key_access()
Rpl_sys_key_access::~Rpl_sys_key_access |
( |
| ) |
|
Destruction.
Closes all initialized index or random scan during destruction.
◆ deinit()
bool Rpl_sys_key_access::deinit |
( |
| ) |
|
Closes all initialized index or random scan during destruction.
- Return values
-
true | if there is error |
false | if there is no error |
◆ get_error()
int Rpl_sys_key_access::get_error |
( |
| ) |
|
|
inline |
Get error set during index initialization or fetching next rows.
- Return values
-
◆ init() [1/3]
Construction.
- Parameters
-
[in] | table | Table object from which row needs to be fetched. |
[in] | type | The type of scan to use to read row. |
- Return values
-
◆ init() [2/3]
int Rpl_sys_key_access::init |
( |
TABLE * |
table, |
|
|
std::string |
pos |
|
) |
| |
When index type enum_key_type::RND_POS needs to be used to read row via random scan from position.
- Parameters
-
[in] | table | Table object from which row needs to be fetched. |
[in] | pos | The position from where to read row. |
- Return values
-
◆ init() [3/3]
When index type enum_key_type::INDEX_NEXT_SAME needs to be used to read [part of] row via [part of] index.
- Parameters
-
[in] | table | Table object from which row needs to be fetched. |
[in] | index | Index to use |
[in] | sorted | Use sorted order |
[in] | keypart_map | Which part of key to use |
[in] | find_flag | Direction/condition on key usage |
- Return values
-
◆ is_read_error()
bool Rpl_sys_key_access::is_read_error |
( |
| ) |
|
Verify if error is set, ignores HA_ERR_END_OF_FILE and HA_ERR_KEY_NOT_FOUND.
- Return values
-
true | if there is error |
false | if there is no error |
◆ next()
int Rpl_sys_key_access::next |
( |
| ) |
|
Get next row in the table.
- Return values
-
◆ m_error
int Rpl_sys_key_access::m_error {1} |
|
private |
◆ m_key
◆ m_key_deinit
bool Rpl_sys_key_access::m_key_deinit {false} |
|
private |
◆ m_key_init
bool Rpl_sys_key_access::m_key_init {false} |
|
private |
◆ m_key_type
◆ m_table
The documentation for this class was generated from the following files: