MySQL  8.0.20
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, sys_var *sys_var, 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,
sys_var sys_var,
Item sys_var_value 
)

Add variable to hint list.

Parameters
thdpointer to THD object
sys_varpointer to sys_var 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: