MySQL 8.0.39
Source Code Documentation
|
#include <item_cmpfunc.h>
Public Member Functions | |
cmp_item_json (unique_ptr_destroy_only< Json_wrapper > wrapper, unique_ptr_destroy_only< Json_scalar_holder > holder) | |
Construct a cmp_item_json object. More... | |
~cmp_item_json () override | |
int | compare (const cmp_item *ci) const override |
void | store_value (Item *item) override |
int | cmp (Item *arg) override |
cmp_item * | make_same () override |
Public Member Functions inherited from cmp_item | |
cmp_item ()=default | |
virtual | ~cmp_item ()=default |
virtual bool | allocate_value_comparators (MEM_ROOT *mem_root, cmp_item *tmpl, Item *arg) |
Allocate comparator objects for each value object, based on the template comparator objects. More... | |
virtual void | store_value_by_template (cmp_item *, Item *item) |
Private Attributes | |
unique_ptr_destroy_only< Json_wrapper > | m_value |
Cached JSON value to look up. More... | |
unique_ptr_destroy_only< Json_scalar_holder > | m_holder |
Cache for the value above. More... | |
String | m_str_value |
String buffer. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from cmp_item | |
static cmp_item * | new_comparator (THD *thd, Item_result result_type, Item *item, const CHARSET_INFO *cs) |
Create an appropriate comparator for the given type. More... | |
Protected Member Functions inherited from cmp_item_scalar | |
void | set_null_value (bool nv) |
Protected Attributes inherited from cmp_item_scalar | |
bool | m_null_value |
If stored value is NULL. More... | |
cmp_item_json::cmp_item_json | ( | unique_ptr_destroy_only< Json_wrapper > | wrapper, |
unique_ptr_destroy_only< Json_scalar_holder > | holder | ||
) |
Construct a cmp_item_json object.
wrapper | a Json_wrapper for holding the JSON value in the comparison |
holder | pre-alloced memory for creating JSON scalar values without using the heap |
|
overridedefault |
|
overridevirtual |
Implements cmp_item.
|
private |
Cache for the value above.
|
private |
String buffer.
|
private |
Cached JSON value to look up.