OceanBase Plugin Development Kit
OceanBase Plugin Development Kit
载入中...
搜索中...
未找到
ObPluginFTParser结构体 参考

fulltext parser descriptor interface for domain index splitting a document into many tokenizations.return the version of this parser 更多...

#include <ob_plugin_ftparser.h>

Public 属性

int(* init )(ObPluginParamPtr param)
 < this routine will be called when loading the library
 
int(* deinit )(ObPluginParamPtr param)
 
int(* scan_begin )(ObPluginFTParserParamPtr param)
 this routine will be called before next_token
 
int(* scan_end )(ObPluginFTParserParamPtr param)
 this routine will be called after next_token
 
int(* next_token )(ObPluginFTParserParamPtr param, char **word, int64_t *word_len, int64_t *char_cnt, int64_t *word_freq)
 this routine will be called many times except it return fail or OBP_ITER_END
 
int(* get_add_word_flag )(uint64_t *flag)
 
int(* check_if_charset_supported )(ObPluginCharsetInfoPtr cs)
 check whether the charset is supported
 

详细描述

fulltext parser descriptor interface for domain index splitting a document into many tokenizations.return the version of this parser

在文件 ob_plugin_ftparser.h67 行定义.

类成员变量说明

◆ check_if_charset_supported

int(* ObPluginFTParser::check_if_charset_supported) (ObPluginCharsetInfoPtr cs)

check whether the charset is supported

自从
0.2.0

The charset is supported if this iterface is null.

返回
  • OBP_SUCCESS for supporting
  • OBP_NOT_SUPPORTED for not supported
  • others for error

在文件 ob_plugin_ftparser.h95 行定义.

◆ deinit

int(* ObPluginFTParser::deinit) (ObPluginParamPtr param)

在文件 ob_plugin_ftparser.h73 行定义.

◆ get_add_word_flag

int(* ObPluginFTParser::get_add_word_flag) (uint64_t *flag)

在文件 ob_plugin_ftparser.h84 行定义.

◆ init

int(* ObPluginFTParser::init) (ObPluginParamPtr param)

< this routine will be called when loading the library

this routine will be called when unloading the library

在文件 ob_plugin_ftparser.h70 行定义.

◆ next_token

int(* ObPluginFTParser::next_token) (ObPluginFTParserParamPtr param, char **word, int64_t *word_len, int64_t *char_cnt, int64_t *word_freq)

this routine will be called many times except it return fail or OBP_ITER_END

return the add_word_flag

在文件 ob_plugin_ftparser.h81 行定义.

◆ scan_begin

int(* ObPluginFTParser::scan_begin) (ObPluginFTParserParamPtr param)

this routine will be called before next_token

在文件 ob_plugin_ftparser.h75 行定义.

◆ scan_end

int(* ObPluginFTParser::scan_end) (ObPluginFTParserParamPtr param)

this routine will be called after next_token

在文件 ob_plugin_ftparser.h76 行定义.


该结构体的文档由以下文件生成: