MySQL 9.4.0
Source Code Documentation
Json_wrapper_crc_hasher Class Reference

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

#include <json_hash.h>

Inheritance diagram for Json_wrapper_crc_hasher:
[legend]

Public Member Functions

 Json_wrapper_crc_hasher (ulonglong hash_val)
 
ulonglong get_hash_value () override
 Return the computed hash value in integer form. More...
 
void add_character (uchar ch) override
 
void add_string (const char *str, size_t len) override
 
- Public Member Functions inherited from Json_wrapper_hasher
void add_integer (longlong ll)
 
void add_double (double d)
 
virtual ~Json_wrapper_hasher ()=default
 

Private Member Functions

void add_to_crc (uchar ch)
 Add another character to the evolving crc. More...
 

Private Attributes

ulonglong m_crc
 

Detailed Description

Helper class for building a hash key.

Constructor & Destructor Documentation

◆ Json_wrapper_crc_hasher()

Json_wrapper_crc_hasher::Json_wrapper_crc_hasher ( ulonglong  hash_val)
inlineexplicit

Member Function Documentation

◆ add_character()

void Json_wrapper_crc_hasher::add_character ( uchar  ch)
inlineoverridevirtual

Implements Json_wrapper_hasher.

◆ add_string()

void Json_wrapper_crc_hasher::add_string ( const char *  str,
size_t  len 
)
inlineoverridevirtual

Implements Json_wrapper_hasher.

◆ add_to_crc()

void Json_wrapper_crc_hasher::add_to_crc ( uchar  ch)
inlineprivate

Add another character to the evolving crc.

Parameters
[in]chThe character to add

◆ get_hash_value()

ulonglong Json_wrapper_crc_hasher::get_hash_value ( )
inlineoverridevirtual

Return the computed hash value in integer form.

This is optional as each seperate hasher would like to produce hash in different forms.

Reimplemented from Json_wrapper_hasher.

Member Data Documentation

◆ m_crc

ulonglong Json_wrapper_crc_hasher::m_crc
private

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