FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

firtex::analyzer::CDateTimeAnalyzer类参考

#include <DateTimeAnalyzer.h>

继承图,类firtex::analyzer::CDateTimeAnalyzer

firtex::analyzer::CAnalyzer 所有成员的列表。

公有成员

 CDateTimeAnalyzer (void)
virtual ~CDateTimeAnalyzer (void)
TokenType getTokenType ()
CTokensnextTokens (CReader *reader, CTokens *pInput=NULL)
void close ()

静态公有成员

int64_t parse (const tchar *str)

静态公有属性

const string category
const string identifier

静态保护成员

bool checkDate (const char *pszDate, DateTime &dt)

构造及析构函数文档

firtex::analyzer::CDateTimeAnalyzer::CDateTimeAnalyzer void   ) 
 

virtual firtex::analyzer::CDateTimeAnalyzer::~CDateTimeAnalyzer void   )  [virtual]
 


成员函数文档

bool firtex::analyzer::CDateTimeAnalyzer::checkDate const char *  pszDate,
DateTime dt
[static, protected]
 

void firtex::analyzer::CDateTimeAnalyzer::close  )  [virtual]
 

关闭分析器,释放资源,子类重载后需显式调用CAnalyzer::close()

重载firtex::analyzer::CAnalyzer

TokenType firtex::analyzer::CDateTimeAnalyzer::getTokenType  )  [inline, virtual]
 

返回Analyzer可以处理的Token类型

返回:
Token 类型,{
参见:
TokenType}

实现了firtex::analyzer::CAnalyzer

CTokens* firtex::analyzer::CDateTimeAnalyzer::nextTokens CReader reader,
CTokens pInput = NULL
 

取一批分析完毕的Token

参数:
reader 读取器,用于读取原始文档
pInput 外部提供的tokens 容器,可为空
返回:
tokens容器,如果pInput不为空,则返回pInput,否则返回内部创建的tokens容器

重载firtex::analyzer::CAnalyzer

int64_t firtex::analyzer::CDateTimeAnalyzer::parse const tchar *  str  )  [static]
 

解析"1999-3-3 4:43:44", "1999/3/3 4:43:44","1999年3月3日 4点43分44秒", "1999年3月3日 4点43分","1999年3月3日 4点","1999年3月3日",...等形式的 时间日期字符串,并转换成time64_t

参数:
str 时间日期字符串
返回:
转换成time64_t的时间结果,如果str则返回-1


成员数据文档

const string firtex::analyzer::CDateTimeAnalyzer::category [static]
 

重载firtex::analyzer::CAnalyzer

const string firtex::analyzer::CDateTimeAnalyzer::identifier [static]
 

重载firtex::analyzer::CAnalyzer


该类的文档由以下文件生成:

http://www.firtex.org http://www.sourceforge.net/projects/firtex