MySQL 9.1.0
Source Code Documentation
|
Execution context class for the MOCK engine. More...
Public Member Functions | |
Mock_execution_context () | |
bool | BestPlanSoFar (const JOIN &join, double cost) |
Checks if the specified cost is the lowest cost seen so far for executing the given JOIN. More... | |
Public Member Functions inherited from Secondary_engine_execution_context | |
virtual | ~Secondary_engine_execution_context ()=default |
Destructs the secondary engine execution context object. More... | |
Private Attributes | |
std::unique_ptr< char[]> | m_data |
const JOIN * | m_current_join {nullptr} |
The JOIN currently being optimized. More... | |
double | m_best_cost |
The cost of the best plan seen so far for the current JOIN. More... | |
Execution context class for the MOCK engine.
It allocates some data on the heap when it is constructed, and frees it when it is destructed, so that LeakSanitizer and Valgrind can detect if the server doesn't destroy the object when the query execution has completed.
|
inline |
|
inline |
Checks if the specified cost is the lowest cost seen so far for executing the given JOIN.
|
private |
The cost of the best plan seen so far for the current JOIN.
|
private |
The JOIN currently being optimized.
|
private |