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

API Documentation


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

DateFieldTermReader.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/6/10
00013 //
00014 #ifndef _DATEFIELDSEARCHER_H
00015 #define _DATEFIELDSEARCHER_H
00016 
00017 #include "../utility/StdHeader.h"
00018 #include "../utility/BitVector.h"
00019 #include "../store/IndexInput.h"
00020 #include "../store/Directory.h"
00021 #include "TermInfo.h"
00022 #include "TermReader.h"
00023 #include "DateFieldIndexer.h"
00024 
00025 using namespace firtex::store;
00026 
00027 namespace firtex
00028 {
00029         namespace index
00030         {
00031                 class CDateFieldIndexer;                
00032                 class CDateFieldTermReader :    public CTermReader
00033                 {
00034                 public:
00035                         CDateFieldTermReader(void);
00036                         CDateFieldTermReader(CDirectory* pDirectory,const tchar* barrelname,CFieldInfo* pFieldInfo,CBitVector* deletedDocs);
00037                         virtual ~CDateFieldTermReader(void);
00038                 public:
00046                         void                    open(CDirectory* pDirectory,const tchar* barrelname,CFieldInfo* pFieldInfo,CBitVector* deletedDocs);
00047 
00055                         CTermIterator*  termIterator(CTerm* pLowerTerm,CTerm* pUpperTerm);
00056 
00063                         CTermIterator*  termIterator(const tchar* field);
00064 
00069                         bool                    seek(CTerm* term);
00070 
00075                         CTermDocs*              termDocs();
00076 
00081                         CTermPositions* termPositions();
00082 
00086                         freq_t                  docFreq(CTerm* term);
00087                         
00091                         void                    close();                
00092 
00093                 protected:              
00098                         CTermInfo*              termInfo(CTerm* term);          
00099                 protected:                      
00100                         CFXString                       m_field;
00101                         CIndexInput*            m_dfiStream;
00102                         CBitVector*                     m_deletedDocs;
00103 
00104                         CDateVocabulary*        m_pDictionary;
00105                         CTermInfo*                      m_pCurTermInfo;         
00106                 };
00107         }
00108 }
00109 
00110 #endif
00111 

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