MySQL 9.1.0
Source Code Documentation
|
#include <fcntl.h>
#include <sys/types.h>
#include <algorithm>
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "storage/myisam/ftdefs.h"
#include "storage/myisam/myisamdef.h"
#include "template_utils.h"
Classes | |
struct | FTB_EXPR |
struct | FTB_WORD |
struct | FTB |
struct | MY_FTB_PARAM |
struct | MY_FTB_PHRASE_PARAM |
struct | MY_FTB_FIND_PARAM |
Macros | |
#define | FT_CORE |
#define | FTB_FLAG_TRUNC 1 |
#define | FTB_FLAG_YES 2 |
#define | FTB_FLAG_NO 4 |
#define | FTB_FLAG_WONLY 8 |
#define | CMP_NUM(a, b) (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1) |
Functions | |
static int | FTB_WORD_cmp (void *v_v, uchar *u_a, uchar *u_b) |
static int | ftb_query_add_word (MYSQL_FTPARSER_PARAM *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *info) |
static int | ftb_parse_query_internal (MYSQL_FTPARSER_PARAM *param, char *query, int len) |
static int | _ftb_parse_query (FTB *ftb, uchar *query, uint len, struct st_mysql_ftparser *parser) |
static int | _ftb_no_dupes_cmp (const void *, const void *a, const void *b) |
static int | _ft2_search_no_lock (FTB *ftb, FTB_WORD *ftbw, bool init_search) |
static int | _ft2_search (FTB *ftb, FTB_WORD *ftbw, bool init_search) |
static void | _ftb_init_index_search (FT_INFO *ftb_base) |
FT_INFO * | ft_init_boolean_search (MI_INFO *info, uint keynr, uchar *query, uint query_len, const CHARSET_INFO *cs) |
static int | ftb_phrase_add_word (MYSQL_FTPARSER_PARAM *param, char *word, int word_len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info) |
static int | ftb_check_phrase_internal (MYSQL_FTPARSER_PARAM *param, char *document, int len) |
static int | _ftb_check_phrase (FTB *ftb, const uchar *document, uint len, FTB_EXPR *ftbe, struct st_mysql_ftparser *parser) |
static int | _ftb_climb_the_tree (FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig) |
int | ft_boolean_read_next (FT_INFO *ftb_base, char *record) |
static int | ftb_find_relevance_add_word (MYSQL_FTPARSER_PARAM *param, char *word, int len, MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info) |
static int | ftb_find_relevance_parse (MYSQL_FTPARSER_PARAM *param, char *doc, int len) |
float | ft_boolean_find_relevance (FT_INFO *ftb_base, uchar *record, uint length) |
void | ft_boolean_close_search (FT_INFO *ftb_base) |
float | ft_boolean_get_relevance (FT_INFO *ftb_base) |
void | ft_boolean_reinit_search (FT_INFO *ftb) |
Variables | |
static double | _wghts [11] |
static double * | wghts = _wghts + 5 |
static double | _nwghts [11] |
static double * | nwghts = _nwghts + 5 |
#define CMP_NUM | ( | a, | |
b | |||
) | (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1) |
#define FT_CORE |
#define FTB_FLAG_NO 4 |
#define FTB_FLAG_TRUNC 1 |
#define FTB_FLAG_WONLY 8 |
#define FTB_FLAG_YES 2 |
|
static |
|
static |
|
static |
|
static |
|
static |
void ft_boolean_close_search | ( | FT_INFO * | ftb_base | ) |
float ft_boolean_get_relevance | ( | FT_INFO * | ftb_base | ) |
int ft_boolean_read_next | ( | FT_INFO * | ftb_base, |
char * | record | ||
) |
void ft_boolean_reinit_search | ( | FT_INFO * | ftb | ) |
FT_INFO * ft_init_boolean_search | ( | MI_INFO * | info, |
uint | keynr, | ||
uchar * | query, | ||
uint | query_len, | ||
const CHARSET_INFO * | cs | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |