MySQL 9.4.0
Source Code Documentation
Json_wrapper_hasher Class Referenceabstract

Helper class for building a hash key. More...

#include <json_hash.h>

Inheritance diagram for Json_wrapper_hasher:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Json_wrapper_hasher()

virtual Json_wrapper_hasher::~Json_wrapper_hasher ( )
virtualdefault

Member Function Documentation

◆ add_character()

virtual void Json_wrapper_hasher::add_character ( uchar  ch)
pure virtual

◆ add_double()

void Json_wrapper_hasher::add_double ( double  d)
inline

◆ add_integer()

void Json_wrapper_hasher::add_integer ( longlong  ll)
inline

◆ add_string()

virtual void Json_wrapper_hasher::add_string ( const char *  str,
size_t  len 
)
pure virtual

◆ get_hash_value()

virtual ulonglong Json_wrapper_hasher::get_hash_value ( )
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.


The documentation for this class was generated from the following file: