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

API Documentation


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

DateFieldTermIterator.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/17
00013 //
00014 
00015 #ifndef _DATEFIELDTERMITERATOR_H
00016 #define _DATEFIELDTERMITERATOR_H
00017 
00018 #if _MSC_VER > 1000
00019 #pragma once
00020 #endif // _MSC_VER > 1000
00021 
00022 #include "../utility/StdHeader.h"
00023 #include "TermIterator.h"
00024 #include "DateFieldIndexer.h"
00025 
00026 namespace firtex
00027 {
00028         namespace index
00029         {
00030                 class CDateFieldTermIterator :  public CTermIterator
00031                 {
00032                 public:
00033                         CDateFieldTermIterator(const tchar* field,CDateVocabulary* pVocabulary);
00034                         CDateFieldTermIterator(CTerm* pLowerTerm,CTerm* pUpperTerm,CDateVocabulary* pVocabulary);
00035                         virtual ~CDateFieldTermIterator(void);
00036                 public:
00041                         bool    next();
00042 
00048                         bool    skipTo(const CTerm* target);
00049 
00053                         const CTerm*  term();
00054 
00058                         freq_t          docFreq();
00059                 private:
00060                         tstring                         m_field;
00061                         CDateVocabulary*        m_pVocabulary;
00062                         CDateVocabulary::vacabulary_iterator m_termIterator;
00063                         CTerm*                          m_pCurTerm;
00064                         CTermInfo*                      m_pTermInfo;
00065                         int32_t                         m_curPos;
00066 
00067                         CTerm*                          m_pLowerTerm;
00068                         CTerm*                          m_pUpperTerm;
00069                 };
00070         }
00071 }
00072 
00073 #endif

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