FirteX-高性能全文索引和检索平台API Documentation |
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 : 2005/12/20 00013 // 00014 #ifndef __TERMDOCS_H 00015 #define __TERMDOCS_H 00016 00017 #include "Term.h" 00018 #include "../utility/StdHeader.h" 00019 00020 namespace firtex 00021 { 00022 namespace index 00023 { 00024 class CTermDocs 00025 { 00026 public: 00027 00028 CTermDocs(void) 00029 { 00030 } 00031 00032 virtual ~CTermDocs(void) 00033 { 00034 } 00035 00039 virtual bool seek(CTerm* term) = 0; 00040 00044 virtual freq_t docFreq()=0; 00045 00052 virtual count_t next(docid_t*& docs, count_t*& freqs)=0; 00053 00061 virtual bool skipTo(docid_t target,docid_t& nearTarget)=0; 00062 00067 virtual bool next()=0; 00068 00073 virtual docid_t doc()=0; 00074 00079 virtual count_t freq()=0; 00080 00084 virtual void close()=0; 00085 }; 00086 } 00087 } 00088 00089 00090 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex