![]() |
OceanBase Plugin Development Kit
OceanBase Plugin Development Kit
|
This is an example for fulltext parser plugin 更多...
命名空间 | |
namespace | oceanbase |
函数 | |
int | ftparser_scan_begin (ObPluginFTParserParamPtr param) |
int | ftparser_scan_end (ObPluginFTParserParamPtr param) |
int | ftparser_next_token (ObPluginFTParserParamPtr param, char **word, int64_t *word_len, int64_t *char_cnt, int64_t *word_freq) |
int | ftparser_get_add_word_flag (uint64_t *flag) |
int | plugin_init (ObPluginParamPtr plugin) |
plugin init function | |
OBP_DECLARE_PLUGIN (example_ftparser) | |
变量 | |
OBP_DECLARE_PLUGIN_END | |
This is an example for fulltext parser plugin
int ftparser_get_add_word_flag | ( | uint64_t * | flag | ) |
在文件 space_ftparser.cpp 第 213 行定义.
int ftparser_next_token | ( | ObPluginFTParserParamPtr | param, |
char ** | word, | ||
int64_t * | word_len, | ||
int64_t * | char_cnt, | ||
int64_t * | word_freq ) |
在文件 space_ftparser.cpp 第 197 行定义.
int ftparser_scan_begin | ( | ObPluginFTParserParamPtr | param | ) |
在文件 space_ftparser.cpp 第 176 行定义.
int ftparser_scan_end | ( | ObPluginFTParserParamPtr | param | ) |
在文件 space_ftparser.cpp 第 189 行定义.
OBP_DECLARE_PLUGIN | ( | example_ftparser | ) |
在文件 space_ftparser.cpp 第 255 行定义.
int plugin_init | ( | ObPluginParamPtr | plugin | ) |
plugin init function
plugin | The plugin param |
This function will be called when OceanBase load the library. We register the plugin(s) in this function and we can initialize other variables here.
A ftparser plugin descriptor
register the ftparser plugin
在文件 space_ftparser.cpp 第 234 行定义.
OBP_DECLARE_PLUGIN_END |
在文件 space_ftparser.cpp 第 262 行定义.