MySQL 8.4.2
Source Code Documentation
Sys_var_hint Class Reference

SET_VAR hints. More...

#include <opt_hints.h>

Public Member Functions

 Sys_var_hint (MEM_ROOT *mem_root_arg)
 
bool add_var (THD *thd, const System_variable_tracker &var_tracker, Item *sys_var_value)
 Add variable to hint list. More...
 
void update_vars (THD *thd)
 Find variable in hint list. More...
 
void restore_vars (THD *thd)
 Restore system variables with original values. More...
 
void print (const THD *thd, String *str)
 Print applicable hints. More...
 

Private Attributes

Mem_root_array< Hint_set_var * > var_list
 

Detailed Description

SET_VAR hints.

Constructor & Destructor Documentation

◆ Sys_var_hint()

Sys_var_hint::Sys_var_hint ( MEM_ROOT mem_root_arg)
inline

Member Function Documentation

◆ add_var()

bool Sys_var_hint::add_var ( THD thd,
const System_variable_tracker var_tracker,
Item sys_var_value 
)

Add variable to hint list.

Parameters
thdpointer to THD object
var_trackerpointer to System_variable_tracker object
sys_var_valuevariable value
Returns
true if variable is added, false otherwise

◆ print()

void Sys_var_hint::print ( const THD thd,
String str 
)

Print applicable hints.

Parameters
thdThread handle
strPointer to string object

◆ restore_vars()

void Sys_var_hint::restore_vars ( THD thd)

Restore system variables with original values.

Parameters
thdPointer to thread object

◆ update_vars()

void Sys_var_hint::update_vars ( THD thd)

Find variable in hint list.

Parameters
thdPointer to thread object

Member Data Documentation

◆ var_list

Mem_root_array<Hint_set_var *> Sys_var_hint::var_list
private

The documentation for this class was generated from the following files: