![]() |
MySQL 9.4.0
Source Code Documentation
|
Helper class for building a hash key. More...
#include <json_hash.h>
Public Member Functions | |
virtual void | add_character (uchar ch)=0 |
void | add_integer (longlong ll) |
void | add_double (double d) |
virtual void | add_string (const char *str, size_t len)=0 |
virtual ulonglong | get_hash_value () |
Return the computed hash value in integer form. More... | |
virtual | ~Json_wrapper_hasher ()=default |
Helper class for building a hash key.
This class can be used to plugin any individual hash algorithm by overriding add_character() and add_string() functions.
|
virtualdefault |
|
pure virtual |
Implemented in Json_wrapper_crc_hasher, and Json_wrapper_xxh_hasher.
|
inline |
|
inline |
|
pure virtual |
Implemented in Json_wrapper_crc_hasher, and Json_wrapper_xxh_hasher.
|
inlinevirtual |
Return the computed hash value in integer form.
This is optional as each seperate hasher would like to produce hash in different forms.
Reimplemented in Json_wrapper_crc_hasher.