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

API Documentation


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

TermVectorWriter.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/3
00013 //
00014 #ifndef __TERMVECTORWRITER_H
00015 #define __TERMVECTORWRITER_H
00016 
00017 #if _MSC_VER > 1000
00018 #pragma once
00019 #endif // _MSC_VER > 1000
00020 
00021 #include "../utility/StdHeader.h"
00022 #include "../document/Document.h"
00023 #include "../document/Field.h"
00024 #include "../store/IndexOutput.h"
00025 #include "../store/Directory.h"
00026 
00027 using namespace firtex;
00028 using namespace firtex::store;
00029 
00030 
00031 namespace firtex
00032 {
00033         namespace index
00034         {
00035                 class CTermSequenceVector;
00036                 class CTermFreqVector;
00037                 class CTermPositionVector;
00038                 class CTermVectorWriter
00039                 {
00040                 public:
00041                         CTermVectorWriter(CDirectory* pDirectory);
00042                         virtual ~CTermVectorWriter(void);
00043                 public:
00044                         void    open(const tchar* barrel);
00045                         void    addDocument(document::CDocument* pDoc);
00046                         void    close();
00047                 private:
00048                         CDirectory*             m_pDirectory;
00049                         CIndexOutput*   m_pTVIOutput;
00050                         CIndexOutput*   m_pTVDOutput;
00051                         CIndexOutput*   m_pTVVOutput;
00052                         
00053                         CTermSequenceVector*    m_pSequenceWriter;
00054                         CTermFreqVector*                m_pFreqWriter;
00055                         CTermPositionVector*    m_pPositionWriter;
00056                 };
00057         }
00058 }
00059 
00060 #endif

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