MySQL 8.0.39
Source Code Documentation
completion_hash.cc File Reference
#include "client/completion_hash.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/service_mysql_alloc.h"

Functions

static uint hashpjw (const char *arKey, uint nKeyLength)
 
int completion_hash_init (HashTable *ht, uint nSize)
 
int completion_hash_update (HashTable *ht, const char *arKey, uint nKeyLength, const char *str)
 
static Bucketcompletion_hash_find (HashTable *ht, const char *arKey, uint nKeyLength)
 
int completion_hash_exists (HashTable *ht, char *arKey, uint nKeyLength)
 
Bucketfind_all_matches (HashTable *ht, const char *str, uint length, uint *res_length)
 
Bucketfind_longest_match (HashTable *ht, char *str, uint length, uint *res_length)
 
void completion_hash_clean (HashTable *ht)
 
void completion_hash_free (HashTable *ht)
 
void add_word (HashTable *ht, const char *str)
 

Function Documentation

◆ add_word()

void add_word ( HashTable ht,
const char *  str 
)

◆ completion_hash_clean()

void completion_hash_clean ( HashTable ht)

◆ completion_hash_exists()

int completion_hash_exists ( HashTable ht,
char *  arKey,
uint  nKeyLength 
)

◆ completion_hash_find()

static Bucket * completion_hash_find ( HashTable ht,
const char *  arKey,
uint  nKeyLength 
)
static

◆ completion_hash_free()

void completion_hash_free ( HashTable ht)

◆ completion_hash_init()

int completion_hash_init ( HashTable ht,
uint  nSize 
)

◆ completion_hash_update()

int completion_hash_update ( HashTable ht,
const char *  arKey,
uint  nKeyLength,
const char *  str 
)

◆ find_all_matches()

Bucket * find_all_matches ( HashTable ht,
const char *  str,
uint  length,
uint res_length 
)

◆ find_longest_match()

Bucket * find_longest_match ( HashTable ht,
char *  str,
uint  length,
uint res_length 
)

◆ hashpjw()

static uint hashpjw ( const char *  arKey,
uint  nKeyLength 
)
static