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

API Documentation


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

WordSequenceVector.h

浏览该文件的文档。
00001 //
00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 
00003 // All rights reserved.
00004 // This file is part of FirteX (www.firtex.org)
00005 //
00006 // Use of the FirteX is subject to the terms of the software license set forth in 
00007 // the LICENSE file included with this software, and also available at
00008 // http://www.firtex.org/license.html
00009 //
00010 // Author       : 郭瑞杰(GuoRuijie)
00011 // Email        : ruijieguo@software.ict.ac.cn,ruijieguo@gmail.com
00012 // Created      : 2006/7/4
00013 //
00014 #ifndef __WORDSEQUENCEVECTOR_H
00015 #define __WORDSEQUENCEVECTOR_H
00016 
00017 #if _MSC_VER > 1000
00018 #pragma once
00019 #endif // _MSC_VER > 1000
00020 
00021 #include "TermSequenceVector.h"
00022 #include "../store/IndexInput.h"
00023 
00024 using namespace firtex::store;
00025 
00026 namespace firtex
00027 {
00028         namespace index
00029         {
00030                 class CWordSequenceVector : public CTermSequenceVector
00031                 {
00032                 public:
00033                         CWordSequenceVector();
00034                         CWordSequenceVector(const tchar* field,CIndexInput* pTVVInput);
00035                         virtual ~CWordSequenceVector(void);
00036                 public:
00037 
00043                         void    open(const tchar* field,CIndexInput* pInput);
00047                         count_t                 numTerms();
00048 
00054                         const termid_t* getTermIDs();
00055                 protected:
00061                         void    addField(CIndexOutput*  pOutput,CField* pField);
00062                 private:
00063                         count_t                 m_numTerms;
00064                         termid_t*               m_termIds;
00065                         CIndexInput*    m_pTVVInput;
00066                 };
00067         }
00068 }
00069 
00070 #endif

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