MySQL 8.0.39
Source Code Documentation
|
A comparator that is used for ordering keys in a Json_object. More...
#include <json_dom.h>
Public Types | |
using | is_transparent = void |
Public Member Functions | |
bool | operator() (const std::string &key1, const std::string &key2) const |
bool | operator() (const MYSQL_LEX_CSTRING &key1, const std::string &key2) const |
bool | operator() (const std::string &key1, const MYSQL_LEX_CSTRING &key2) const |
A comparator that is used for ordering keys in a Json_object.
It orders the keys on length, and lexicographically if the keys have the same length. The ordering is ascending. This ordering was chosen for speed of look-up. See usage in Json_object_map.
using Json_key_comparator::is_transparent = void |
bool Json_key_comparator::operator() | ( | const MYSQL_LEX_CSTRING & | key1, |
const std::string & | key2 | ||
) | const |
bool Json_key_comparator::operator() | ( | const std::string & | key1, |
const MYSQL_LEX_CSTRING & | key2 | ||
) | const |
bool Json_key_comparator::operator() | ( | const std::string & | key1, |
const std::string & | key2 | ||
) | const |