MySQL 8.0.39
Source Code Documentation
Json_key_comparator Struct Reference

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
 

Detailed Description

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.

Member Typedef Documentation

◆ is_transparent

Member Function Documentation

◆ operator()() [1/3]

bool Json_key_comparator::operator() ( const MYSQL_LEX_CSTRING key1,
const std::string &  key2 
) const

◆ operator()() [2/3]

bool Json_key_comparator::operator() ( const std::string &  key1,
const MYSQL_LEX_CSTRING key2 
) const

◆ operator()() [3/3]

bool Json_key_comparator::operator() ( const std::string &  key1,
const std::string &  key2 
) const

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