58 uint nKeyLength,
const char *
str);
int completion_hash_update(HashTable *ht, const char *arKey, uint nKeyLength, const char *str)
Definition: completion_hash.cc:63
int completion_hash_exists(HashTable *ht, char *arKey, uint nKeyLength)
Definition: completion_hash.cc:131
int completion_hash_init(HashTable *ht, uint nSize)
Definition: completion_hash.cc:47
void completion_hash_free(HashTable *ht)
Definition: completion_hash.cc:199
Bucket * find_longest_match(HashTable *ht, char *str, uint length, uint *res_length)
Definition: completion_hash.cc:164
int hash_exists(HashTable *ht, char *arKey)
void completion_hash_clean(HashTable *ht)
Definition: completion_hash.cc:194
void add_word(HashTable *ht, const char *str)
Definition: completion_hash.cc:204
Bucket * find_all_matches(HashTable *ht, const char *str, uint length, uint *res_length)
Definition: completion_hash.cc:150
struct hashtable HashTable
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
Common header for many mysys elements.
static HashTable ht
Definition: mysql.cc:159
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1063
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: completion_hash.h:34
const char * str
Definition: completion_hash.h:35
struct _entry * pNext
Definition: completion_hash.h:36
Definition: completion_hash.h:39
const char * arKey
Definition: completion_hash.h:41
entry * pData
Definition: completion_hash.h:44
uint count
Definition: completion_hash.h:43
uint nKeyLength
Definition: completion_hash.h:42
uint h
Definition: completion_hash.h:40
struct bucket * pNext
Definition: completion_hash.h:45
Definition: completion_hash.h:48
uint nTableSize
Definition: completion_hash.h:49
Bucket ** arBuckets
Definition: completion_hash.h:53
MEM_ROOT mem_root
Definition: completion_hash.h:51
uint(* pHashFunction)(const char *arKey, uint nKeyLength)
Definition: completion_hash.h:52
uint initialized
Definition: completion_hash.h:50