MySQL 8.0.40
Source Code Documentation
|
#include "my_config.h"
#include "my_compiler.h"
#include <assert.h>
#include <mecab.h>
#include <string>
#include <mysql/components/my_service.h>
#include <mysql/components/services/log_builtins.h>
#include "mysqld_error.h"
#include "storage/innobase/include/fts0tokenize.h"
Functions | |
static bool | mecab_parser_check_and_set_charset (const char *charset) |
Set MeCab parser charset. More... | |
static int | mecab_parser_plugin_init (void *) |
MeCab parser plugin initialization. More... | |
static int | mecab_parser_plugin_deinit (void *) |
MeCab parser plugin deinit. More... | |
static int | mecab_parse (MeCab::Lattice *mecab_lattice, MYSQL_FTPARSER_PARAM *param, char *doc, int len, MYSQL_FTPARSER_BOOLEAN_INFO *bool_info) |
Parse a document by MeCab. More... | |
static int | mecab_parser_parse (MYSQL_FTPARSER_PARAM *param) |
MeCab parser parse a document. More... | |
static | MYSQL_SYSVAR_STR (rc_file, mecab_rc_file, PLUGIN_VAR_READONLY|PLUGIN_VAR_NOPERSIST, "MECABRC file path", NULL, NULL, NULL) |
mysql_declare_plugin (mecab_parser) | |
Variables | |
static MeCab::Model * | mecab_model = NULL |
Global mecab objects shared by all threads. More... | |
static MeCab::Tagger * | mecab_tagger = NULL |
static char | mecab_charset [64] |
Mecab charset. More... | |
static char * | mecab_rc_file |
Mecab rc file path. More... | |
static const char * | mecab_min_supported_version = "0.993" |
static const char * | mecab_max_supported_version = "0.996" |
static const mysql_service_registry_t * | reg_srv = nullptr |
const mysql_service_log_builtins_t * | log_bi = nullptr |
accessor built-ins More... | |
const mysql_service_log_builtins_string_t * | log_bs = nullptr |
string built-ins More... | |
static struct st_mysql_ftparser | mecab_parser_descriptor |
Fulltext MeCab Parser Descriptor. More... | |
static SHOW_VAR | mecab_status [] |
static SYS_VAR * | mecab_system_variables [] = {MYSQL_SYSVAR(rc_file), NULL} |
mysql_declare_plugin_end | |
|
static |
Parse a document by MeCab.
[in] | mecab_lattice | mecab lattice |
[in] | param | plugin parser param |
[in] | doc | document to parse |
[in] | len | document length |
[in,out] | bool_info | boolean info |
0 | on success |
1 | on failure. |
|
static |
Set MeCab parser charset.
[in] | charset | charset string |
true | on success |
false | on failure |
|
static |
MeCab parser parse a document.
[in] | param | plugin parser param |
0 | on success |
1 | on failure. |
|
static |
MeCab parser plugin deinit.
0 |
|
static |
MeCab parser plugin initialization.
0 | on success |
1 | on failure. |
mysql_declare_plugin | ( | mecab_parser | ) |
< type
< descriptor
< name
< author
< description
< license
< init function (when loaded)
< check uninstall function
< deinit function (when unloaded)
< version
< status variables
< system variables
|
static |
const mysql_service_log_builtins_t* log_bi = nullptr |
accessor built-ins
accessor built-ins
const mysql_service_log_builtins_string_t* log_bs = nullptr |
string built-ins
|
static |
Mecab charset.
|
static |
|
static |
|
static |
Global mecab objects shared by all threads.
|
static |
Fulltext MeCab Parser Descriptor.
|
static |
Mecab rc file path.
|
static |
|
static |
|
static |
mysql_declare_plugin_end |
|
static |