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,ruijieguo@gmail.com 00012 // Created : 2006/7/16 00013 // 00014 #ifndef _RANGEQUERY_H 00015 #define _RANGEQUERY_H 00016 00017 #if _MSC_VER > 1000 00018 #pragma once 00019 #endif // _MSC_VER > 1000 00020 00021 #include "Query.h" 00022 #include "../index/Term.h" 00023 using namespace firtex::index; 00024 00025 namespace firtex 00026 { 00027 namespace search 00028 { 00029 class CRangeQuery : public CQuery 00030 { 00031 public: 00039 CRangeQuery(CTerm* lowerTerm,CTerm* upperTerm,bool bInclusive); 00040 CRangeQuery(const CRangeQuery& clone); 00041 virtual ~CRangeQuery(void); 00042 public: 00044 const tchar* getQueryName() const{return _T("rangquery");}; 00045 00052 CQuery* optimize(firtex::index::CIndexReader* pReader); 00053 00058 CQuery* clone(); 00059 private: 00060 CTerm* m_pLowerTerm; //下限 00061 CTerm* m_pUpperTerm; //上限 00062 bool m_bInclusive; //是否包含边界值 00063 }; 00064 } 00065 } 00066 00067 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex