MySQL 8.0.39
Source Code Documentation
ft_parser.cc File Reference
#include <sys/types.h>
#include "ctype.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "storage/myisam/ftdefs.h"
#include "storage/myisam/myisamdef.h"
#include "template_utils.h"

Classes

struct  FT_DOCSTAT
 
struct  MY_FT_PARSER_PARAM
 

Macros

#define MAX_PARAM_NR   2
 

Functions

static int FT_WORD_cmp (const void *a, const void *b, const void *c)
 
static int walk_and_copy (void *v_word, uint32 count, void *v_docstat)
 
FT_WORDft_linearize (TREE *wtree, MEM_ROOT *mem_root)
 
bool ft_boolean_check_syntax_string (const uchar *str)
 
uchar ft_get_word (const CHARSET_INFO *cs, uchar **start, uchar *end, FT_WORD *word, MYSQL_FTPARSER_BOOLEAN_INFO *param)
 
uchar ft_simple_get_word (const CHARSET_INFO *cs, uchar **start, const uchar *end, FT_WORD *word, bool skip_stopwords)
 
void ft_parse_init (TREE *wtree, const CHARSET_INFO *cs)
 
static int ft_add_word (MYSQL_FTPARSER_PARAM *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info)
 
static int ft_parse_internal (MYSQL_FTPARSER_PARAM *param, char *doc_arg, int doc_len)
 
int ft_parse (TREE *wtree, uchar *doc, int doclen, struct st_mysql_ftparser *parser, MYSQL_FTPARSER_PARAM *param, MEM_ROOT *mem_root)
 
MYSQL_FTPARSER_PARAMftparser_alloc_param (MI_INFO *info)
 
MYSQL_FTPARSER_PARAMftparser_call_initializer (MI_INFO *info, uint keynr, uint paramnr)
 
void ftparser_call_deinitializer (MI_INFO *info)
 

Macro Definition Documentation

◆ MAX_PARAM_NR

#define MAX_PARAM_NR   2

Function Documentation

◆ ft_add_word()

static int ft_add_word ( MYSQL_FTPARSER_PARAM param,
char *  word,
int  word_len,
MYSQL_FTPARSER_BOOLEAN_INFO boolean_info 
)
static

◆ ft_boolean_check_syntax_string()

bool ft_boolean_check_syntax_string ( const uchar str)

◆ ft_get_word()

uchar ft_get_word ( const CHARSET_INFO cs,
uchar **  start,
uchar end,
FT_WORD word,
MYSQL_FTPARSER_BOOLEAN_INFO param 
)

◆ ft_linearize()

FT_WORD * ft_linearize ( TREE wtree,
MEM_ROOT mem_root 
)

◆ ft_parse()

int ft_parse ( TREE wtree,
uchar doc,
int  doclen,
struct st_mysql_ftparser parser,
MYSQL_FTPARSER_PARAM param,
MEM_ROOT mem_root 
)

◆ ft_parse_init()

void ft_parse_init ( TREE wtree,
const CHARSET_INFO cs 
)

◆ ft_parse_internal()

static int ft_parse_internal ( MYSQL_FTPARSER_PARAM param,
char *  doc_arg,
int  doc_len 
)
static

◆ ft_simple_get_word()

uchar ft_simple_get_word ( const CHARSET_INFO cs,
uchar **  start,
const uchar end,
FT_WORD word,
bool  skip_stopwords 
)

◆ FT_WORD_cmp()

static int FT_WORD_cmp ( const void *  a,
const void *  b,
const void *  c 
)
static

◆ ftparser_alloc_param()

MYSQL_FTPARSER_PARAM * ftparser_alloc_param ( MI_INFO info)

◆ ftparser_call_deinitializer()

void ftparser_call_deinitializer ( MI_INFO info)

◆ ftparser_call_initializer()

MYSQL_FTPARSER_PARAM * ftparser_call_initializer ( MI_INFO info,
uint  keynr,
uint  paramnr 
)

◆ walk_and_copy()

static int walk_and_copy ( void *  v_word,
uint32  count,
void *  v_docstat 
)
static