MySQL 5.6.14 Source Code Document
|
#include <opt_explain_format.h>
Public Member Functions | |
void | cleanup () |
bool | is_empty () |
bool | set (const char *str_arg) |
bool | set (const String &s) |
bool | set (const char *str_arg, size_t length_arg) |
void | set (Lazy *x) |
void | set_const (const char *str_arg) |
void | set_const (const char *str_arg, size_t length_arg) |
Static Public Member Functions | |
static char * | strndup_root (MEM_ROOT *root, const char *str, size_t len) |
Public Attributes | |
const char * | str |
size_t | length |
Lazy * | deferred |
Helper class to keep string data in MEM_ROOT before passing to Item_string
Since Item_string constructors doesn't copy input string parameter data in the most cases, those input strings must have the same lifetime as Item_string objects, i.e. lifetime of MEM_ROOT. This class allocates input parameters for Item_string objects in MEM_ROOT.
Definition at line 201 of file opt_explain_format.h.
|
inline |
Make a copy of the string in MEM_ROOT
str_arg | string to copy |
length_arg | input string length |
Definition at line 244 of file opt_explain_format.h.
|
inline |
Save expression for further evaluation
x | Expression |
Definition at line 257 of file opt_explain_format.h.
|
inline |
Make a copy of string constant
Variant of set() usable when the str_arg argument lives longer than the mem_root_str instance.
Definition at line 269 of file opt_explain_format.h.