MySQL 9.6.0
Source Code Documentation
mysql_component_mysql_lock_free_hash_imp Class Reference

An implementation of "mysql_lock_free_hash" component service using the server's lock free hash implementation. More...

#include <mysql_lock_free_hash_imp.h>

Static Public Member Functions

static LF_HASH_h init (uint element_size, uint flags, uint key_offset, uint key_length, hash_get_key_function get_key, CHARSET_INFO_h charset, lf_allocator_func *ctor, lf_allocator_func *dtor, lf_hash_init_func *init) noexcept
 Wrapper around lf_hash_init2 function. More...
 
static mysql_service_status_t destroy (LF_HASH_h hash) noexcept
 Wrapper around lf_hash_destroy function. More...
 
static LF_PINS_h get_pins (LF_HASH_h hash) noexcept
 Wrapper around lf_hash_get_pins function. More...
 
static void * search (LF_HASH_h hash, LF_PINS_h pins, const void *data, ulong length) noexcept
 Wrapper around lf_hash_search function. More...
 
static int remove (LF_HASH_h hash, LF_PINS_h pins, const void *data, uint length) noexcept
 Wrapper around lf_hash_delete function. More...
 
static void * random_match (LF_HASH_h hash, LF_PINS_h pins, lf_hash_match_func *match, uint rand_val, void *match_arg) noexcept
 Wrapper around lf_hash_random_match function. More...
 
static void search_unpin (LF_PINS_h pins) noexcept
 Wrapper around lf_hash_search_unpin function. More...
 
static void put_pins (LF_PINS_h pins) noexcept
 Wrapper around lf_hash_put_pins function. More...
 
static int insert (LF_HASH_h hash, LF_PINS_h pins, const void *data) noexcept
 Wrapper around lf_hash_insert function. More...
 
static int overhead () noexcept
 LF_HASH_OVERHEAD value. More...
 

Detailed Description

An implementation of "mysql_lock_free_hash" component service using the server's lock free hash implementation.

Member Function Documentation

◆ destroy()

mysql_service_status_t mysql_component_mysql_lock_free_hash_imp::destroy ( LF_HASH_h  hash)
staticnoexcept

Wrapper around lf_hash_destroy function.

See also
lf_hash_destroy

◆ get_pins()

LF_PINS_h mysql_component_mysql_lock_free_hash_imp::get_pins ( LF_HASH_h  hash)
staticnoexcept

Wrapper around lf_hash_get_pins function.

See also
lf_hash_get_pins

◆ init()

LF_HASH_h mysql_component_mysql_lock_free_hash_imp::init ( uint  element_size,
uint  flags,
uint  key_offset,
uint  key_length,
hash_get_key_function  get_key,
CHARSET_INFO_h  charset,
lf_allocator_func ctor,
lf_allocator_func dtor,
lf_hash_init_func init 
)
staticnoexcept

Wrapper around lf_hash_init2 function.

See also
lf_hash_init2

◆ insert()

int mysql_component_mysql_lock_free_hash_imp::insert ( LF_HASH_h  hash,
LF_PINS_h  pins,
const void *  data 
)
staticnoexcept

Wrapper around lf_hash_insert function.

See also
lf_hash_insert

◆ overhead()

int mysql_component_mysql_lock_free_hash_imp::overhead ( )
staticnoexcept

LF_HASH_OVERHEAD value.

See also
LF_HASH_OVERHEAD

◆ put_pins()

void mysql_component_mysql_lock_free_hash_imp::put_pins ( LF_PINS_h  pins)
staticnoexcept

Wrapper around lf_hash_put_pins function.

See also
lf_hash_put_pins

◆ random_match()

void * mysql_component_mysql_lock_free_hash_imp::random_match ( LF_HASH_h  hash,
LF_PINS_h  pins,
lf_hash_match_func match,
uint  rand_val,
void *  match_arg 
)
staticnoexcept

Wrapper around lf_hash_random_match function.

See also
lf_hash_random_match

◆ remove()

int mysql_component_mysql_lock_free_hash_imp::remove ( LF_HASH_h  hash,
LF_PINS_h  pins,
const void *  data,
uint  length 
)
staticnoexcept

Wrapper around lf_hash_delete function.

See also
lf_hash_delete

◆ search()

void * mysql_component_mysql_lock_free_hash_imp::search ( LF_HASH_h  hash,
LF_PINS_h  pins,
const void *  data,
ulong  length 
)
staticnoexcept

Wrapper around lf_hash_search function.

See also
lf_hash_search

◆ search_unpin()

void mysql_component_mysql_lock_free_hash_imp::search_unpin ( LF_PINS_h  pins)
staticnoexcept

Wrapper around lf_hash_search_unpin function.

See also
lf_hash_search_unpin

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