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

API Documentation


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

TermPositionVector.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
00012 // Created      : 2006/7/3
00013 //
00014 #ifndef _TERMPOSITIONVECTOR_H
00015 #define _TERMPOSITIONVECTOR_H
00016 
00017 #include "TermFreqVector.h"
00018 
00019 #if _MSC_VER > 1000
00020 #pragma once
00021 #endif // _MSC_VER > 1000
00022 
00023 namespace firtex
00024 {
00025         namespace index
00026         {
00027                 class CTermPositionVector :     public CTermFreqVector
00028                 {
00029                 public:
00030                         CTermPositionVector()
00031                         {
00032                         }
00033                         CTermPositionVector(const tchar* field) : CTermFreqVector(field)
00034                         {
00035                         }
00036 
00037                         virtual ~CTermPositionVector(void)
00038                         {
00039                         }
00040                 public:
00046                         virtual void    open(const tchar* field,CIndexInput* pInput) = 0;
00047 
00054                         virtual const loc_t* getTermPositions(const CTerm* term) = 0;
00055 
00062                         virtual const loc_t* getTermPositions(termid_t tid) = 0;
00063 
00070                         virtual const loc_t* getTermPositions(size_t index) = 0;
00071                 };
00072         }
00073 }
00074 
00075 #endif

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