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

API Documentation


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

StoredFieldsReader.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/4/12
00013 //
00014 #ifndef _STOREDFIELDREADER_H
00015 #define _STOREDFIELDREADER_H
00016 
00017 #include "../utility/StdHeader.h"
00018 #include "../document/Document.h"
00019 #include "../document/Field.h"
00020 #include "../store/Directory.h"
00021 #include "../store/IndexInput.h"
00022 #include <string>
00023 
00024 #define STOREDFIELD_READERBUFFSIZE      4096            //4K
00025 
00026 using namespace std;
00027 using namespace firtex::store;
00028 using namespace firtex;
00029 
00030 namespace firtex
00031 {
00032         namespace index
00033         {
00034                 class CFieldsInfo;
00035                 class CStoredFieldsReader
00036                 {
00037                 public:
00038                         CStoredFieldsReader(CDirectory* pDirectory,const tstring& barrel,CFieldsInfo* fieldsInfo);
00039                         ~CStoredFieldsReader(void);
00040                 public:
00047                         document::CDocument*    document(docid_t docID);
00048 
00056                         document::CField*               field(docid_t docID,fieldid_t fid);
00057 
00058                         void                    open(CDirectory* pDirectory,const tstring& barrel,CFieldsInfo* fieldsInfo);
00059                         void                    close();
00060                 protected:
00061                         CIndexInput*    m_pFieldValueReader;
00062                         CIndexInput*    m_pFieldIndexReader;                    
00063 
00064                         CFieldsInfo*    m_pFieldsInfo;
00065                 };
00066         }
00067 }
00068 
00069 
00070 #endif

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