MySQL 8.0.40
Source Code Documentation
|
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <mutex>
#include <new>
#include <regex>
#include <string>
#include <vector>
#include "mysql.h"
#include "mysql/udf_registration_types.h"
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
Classes | |
struct | avgcost_data |
struct | My_median_data |
Macros | |
#define | MAXMETAPH 8 |
#define | ISVOWEL(x) (codes[(x) - 'A'] & 1) /* AEIOU */ |
#define | NOCHANGE(x) (codes[(x) - 'A'] & 2) /* FJLMNR */ |
#define | AFFECTH(x) (codes[(x) - 'A'] & 4) /* CGPST */ |
#define | MAKESOFT(x) (codes[(x) - 'A'] & 8) /* EIY */ |
#define | NOGHTOF(x) (codes[(x) - 'A'] & 16) /* BDH */ |
Functions | |
bool | metaphon_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
void | metaphon_deinit (UDF_INIT *) |
char * | metaphon (UDF_INIT *, UDF_ARGS *args, char *result, unsigned long *length, unsigned char *is_null, unsigned char *) |
bool | myfunc_double_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
double | myfunc_double (UDF_INIT *, UDF_ARGS *args, unsigned char *is_null, unsigned char *) |
long long | myfunc_int (UDF_INIT *, UDF_ARGS *args, unsigned char *, unsigned char *) |
bool | myfunc_int_init (UDF_INIT *, UDF_ARGS *, char *) |
bool | sequence_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
void | sequence_deinit (UDF_INIT *initid) |
long long | sequence (UDF_INIT *initid, UDF_ARGS *args, unsigned char *, unsigned char *) |
bool | lookup_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
void | lookup_deinit (UDF_INIT *) |
char * | lookup (UDF_INIT *, UDF_ARGS *args, char *result, unsigned long *res_length, unsigned char *null_value, unsigned char *) |
bool | reverse_lookup_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
void | reverse_lookup_deinit (UDF_INIT *) |
char * | reverse_lookup (UDF_INIT *, UDF_ARGS *args, char *result, unsigned long *res_length, unsigned char *null_value, unsigned char *) |
bool | avgcost_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
void | avgcost_deinit (UDF_INIT *initid) |
void | avgcost_clear (UDF_INIT *initid, unsigned char *, unsigned char *) |
void | avgcost_add (UDF_INIT *initid, UDF_ARGS *args, unsigned char *, unsigned char *) |
double | avgcost (UDF_INIT *initid, UDF_ARGS *, unsigned char *is_null, unsigned char *) |
bool | myfunc_argument_name_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
char * | myfunc_argument_name (UDF_INIT *, UDF_ARGS *args, char *result, unsigned long *length, unsigned char *null_value, unsigned char *) |
bool | is_const_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
char * | is_const (UDF_INIT *initid, UDF_ARGS *, char *result, unsigned long *length, unsigned char *is_null, unsigned char *) |
bool | check_const_len_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
char * | check_const_len (UDF_INIT *initid, UDF_ARGS *, char *result, unsigned long *length, unsigned char *is_null, unsigned char *) |
bool | my_median_init (UDF_INIT *initid, UDF_ARGS *, char *message) |
void | my_median_deinit (UDF_INIT *initid) |
void | my_median_add (UDF_INIT *initid, UDF_ARGS *args, unsigned char *, unsigned char *) |
void | my_median_clear (UDF_INIT *initid, unsigned char *, unsigned char *) |
long long | my_median (UDF_INIT *initid, UDF_ARGS *, unsigned char *is_null, unsigned char *) |
Variables | |
static std::mutex * | LOCK_hostname {nullptr} |
static char | codes [26] |
#define AFFECTH | ( | x | ) | (codes[(x) - 'A'] & 4) /* CGPST */ |
#define ISVOWEL | ( | x | ) | (codes[(x) - 'A'] & 1) /* AEIOU */ |
#define MAKESOFT | ( | x | ) | (codes[(x) - 'A'] & 8) /* EIY */ |
#define MAXMETAPH 8 |
#define NOCHANGE | ( | x | ) | (codes[(x) - 'A'] & 2) /* FJLMNR */ |
#define NOGHTOF | ( | x | ) | (codes[(x) - 'A'] & 16) /* BDH */ |
void avgcost_clear | ( | UDF_INIT * | initid, |
unsigned char * | , | ||
unsigned char * | |||
) |
void avgcost_deinit | ( | UDF_INIT * | initid | ) |
char * check_const_len | ( | UDF_INIT * | initid, |
UDF_ARGS * | , | ||
char * | result, | ||
unsigned long * | length, | ||
unsigned char * | is_null, | ||
unsigned char * | |||
) |
char * is_const | ( | UDF_INIT * | initid, |
UDF_ARGS * | , | ||
char * | result, | ||
unsigned long * | length, | ||
unsigned char * | is_null, | ||
unsigned char * | |||
) |
char * lookup | ( | UDF_INIT * | , |
UDF_ARGS * | args, | ||
char * | result, | ||
unsigned long * | res_length, | ||
unsigned char * | null_value, | ||
unsigned char * | |||
) |
void lookup_deinit | ( | UDF_INIT * | ) |
char * metaphon | ( | UDF_INIT * | , |
UDF_ARGS * | args, | ||
char * | result, | ||
unsigned long * | length, | ||
unsigned char * | is_null, | ||
unsigned char * | |||
) |
void metaphon_deinit | ( | UDF_INIT * | ) |
void my_median_clear | ( | UDF_INIT * | initid, |
unsigned char * | , | ||
unsigned char * | |||
) |
void my_median_deinit | ( | UDF_INIT * | initid | ) |
char * myfunc_argument_name | ( | UDF_INIT * | , |
UDF_ARGS * | args, | ||
char * | result, | ||
unsigned long * | length, | ||
unsigned char * | null_value, | ||
unsigned char * | |||
) |
char * reverse_lookup | ( | UDF_INIT * | , |
UDF_ARGS * | args, | ||
char * | result, | ||
unsigned long * | res_length, | ||
unsigned char * | null_value, | ||
unsigned char * | |||
) |
void reverse_lookup_deinit | ( | UDF_INIT * | ) |
void sequence_deinit | ( | UDF_INIT * | initid | ) |
|
static |
|
static |