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

API Documentation


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

firtex::index::CIndexBarrelWriter类参考

#include <IndexBarrelWriter.h>

所有成员的列表。

公有成员

 CIndexBarrelWriter (CDirectory *pDirectory, const tstring &name)
 CIndexBarrelWriter (CDirectory *pDirectory)
 ~CIndexBarrelWriter (void)
void open (const tstring &barrelName)
void close ()
bool addDocument (document::CDocument *pDoc)
bool cacheFull ()
bool cacheEmpty ()
const tstring & getBarrelName ()
CFieldIndexergetFieldIndexer (const tstring &field)

保护成员

void writeCache ()
void resetCache ()
CPosMemCachegetMemCache ()

保护属性

CDirectorym_pDirectory
tstring m_barrelName
CStoredFieldsWriterm_pStoredFieldsWriter
CTermVectorWriterm_pTermVectorWriter
CFieldsInfom_pFieldsInfo
CPosMemCachem_pMemCache
CNormsWriterm_pNormsWriter
CFieldIndexer ** m_fieldIndexers
int32_t m_numIndexers

友元

class CFXInvIndex


构造及析构函数文档

firtex::index::CIndexBarrelWriter::CIndexBarrelWriter CDirectory pDirectory,
const tstring &  name
 

firtex::index::CIndexBarrelWriter::CIndexBarrelWriter CDirectory pDirectory  ) 
 

firtex::index::CIndexBarrelWriter::~CIndexBarrelWriter void   ) 
 


成员函数文档

bool firtex::index::CIndexBarrelWriter::addDocument document::CDocument pDoc  ) 
 

添加Analyzed Document

参数:
pDoc 待添加的已经经过分析处理后的Document
返回:
bool 是否成功

bool firtex::index::CIndexBarrelWriter::cacheEmpty  )  [inline]
 

判断文档缓冲是否为空

返回:
true 文档缓冲为空

bool firtex::index::CIndexBarrelWriter::cacheFull  ) 
 

判断是否到达文档容量上限

返回:
true cache已经用完

void firtex::index::CIndexBarrelWriter::close  ) 
 

关闭桶索引器

const tstring& firtex::index::CIndexBarrelWriter::getBarrelName  )  [inline]
 

获取索引桶名称

CFieldIndexer* firtex::index::CIndexBarrelWriter::getFieldIndexer const tstring &  field  ) 
 

获取指定域的索引器

参数:
field 字段名 内部对象,外部不能删除

CPosMemCache* firtex::index::CIndexBarrelWriter::getMemCache  )  [inline, protected]
 

void firtex::index::CIndexBarrelWriter::open const tstring &  barrelName  ) 
 

打开桶索引器

参数:
barrelName 索引桶名称

void firtex::index::CIndexBarrelWriter::resetCache  )  [protected]
 

清空文档内容

void firtex::index::CIndexBarrelWriter::writeCache  )  [protected]
 

将倒排文档写到文件


友元及相关函数文档

friend class CFXInvIndex [friend]
 


成员数据文档

tstring firtex::index::CIndexBarrelWriter::m_barrelName [protected]
 

CFieldIndexer** firtex::index::CIndexBarrelWriter::m_fieldIndexers [protected]
 

int32_t firtex::index::CIndexBarrelWriter::m_numIndexers [protected]
 

CDirectory* firtex::index::CIndexBarrelWriter::m_pDirectory [protected]
 

CFieldsInfo* firtex::index::CIndexBarrelWriter::m_pFieldsInfo [protected]
 

CPosMemCache* firtex::index::CIndexBarrelWriter::m_pMemCache [protected]
 

CNormsWriter* firtex::index::CIndexBarrelWriter::m_pNormsWriter [protected]
 

CStoredFieldsWriter* firtex::index::CIndexBarrelWriter::m_pStoredFieldsWriter [protected]
 

CTermVectorWriter* firtex::index::CIndexBarrelWriter::m_pTermVectorWriter [protected]
 


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

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