OceanBase Plugin Development Kit
OceanBase Plugin Development Kit
载入中...
搜索中...
未找到
Fulltext Parser Plugin Example

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

函数说明

◆ ftparser_get_add_word_flag()

int ftparser_get_add_word_flag ( uint64_t * flag)

在文件 space_ftparser.cpp213 行定义.

◆ ftparser_next_token()

int ftparser_next_token ( ObPluginFTParserParamPtr param,
char ** word,
int64_t * word_len,
int64_t * char_cnt,
int64_t * word_freq )

在文件 space_ftparser.cpp197 行定义.

◆ ftparser_scan_begin()

int ftparser_scan_begin ( ObPluginFTParserParamPtr param)

在文件 space_ftparser.cpp176 行定义.

◆ ftparser_scan_end()

int ftparser_scan_end ( ObPluginFTParserParamPtr param)

在文件 space_ftparser.cpp189 行定义.

◆ OBP_DECLARE_PLUGIN()

OBP_DECLARE_PLUGIN ( example_ftparser )

在文件 space_ftparser.cpp255 行定义.

◆ plugin_init()

int plugin_init ( ObPluginParamPtr plugin)

plugin init function

参数
pluginThe 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.cpp234 行定义.

变量说明

◆ OBP_DECLARE_PLUGIN_END

OBP_DECLARE_PLUGIN_END

在文件 space_ftparser.cpp262 行定义.