Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvPassagePushIndex.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2002 University of Massachusetts.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 #ifndef _INVPASSAGEPUSHINDEX_HPP
00012 #define _INVPASSAGEPUSHINDEX_HPP
00013 
00015 
00024 /*
00025  * NAME DATE - COMMENTS
00026  * dmf 07/24 - subclassed to make passage indexer
00027  ======================================================================*/
00028 #include "InvFPPushIndex.hpp"
00029 
00030 class InvPassagePushIndex : public InvFPPushIndex {
00031 public:
00032   InvPassagePushIndex(const string &prefix, int psgSize=50,
00033                       int cachesize=128000000, long maxfilesize=2100000000, 
00034                       DOCID_T startdocid=1);
00035   virtual ~InvPassagePushIndex();
00037   void setPassageSize(int n);
00039   virtual bool beginDoc(const DocumentProps* dp);
00040 
00042   virtual bool addTerm(const Term& t);
00043 
00045     virtual void doendDoc(const DocumentProps* dp, int mgrid);
00046   
00047 private:
00049   int passageSize;
00051   int passageEnd;  
00053   int psgCounter;
00055   //  DocumentProps *curDoc;
00057   string curDocName;
00058 };
00059 
00060 #endif

Generated on Wed Nov 3 12:58:58 2004 for Lemur Toolkit by doxygen1.2.18