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.cs.cmu.edu/~lemur/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 #ifndef _INCFPPUSHINDEX_HPP 00013 #define _INCFPPUSHINDEX_HPP 00014 00016 00023 /* 00024 * NAME DATE - COMMENTS 00025 * dmf 07/02 - subclass from InvFPPushIndex 00026 * 00027 ======================================================================*/ 00028 #include "InvFPPushIndex.hpp" 00029 00030 class IncFPPushIndex : public InvFPPushIndex { 00031 public: 00034 IncFPPushIndex(char* prefix, int cachesize=128000000, 00035 long maxfilesize=2100000000, DOCID_T startdocid=1); 00036 private: 00038 char *invfpF, *dtF, *dmgrF, *didF, *tidF; 00040 bool tryOpen(char *name); 00042 bool readToc(char *name); 00044 void readInvFileIDs(); 00046 void readDtFileIDs(); 00048 void readDocMgrIDs(); 00050 void readTermIDs(); 00052 void readDocIDs(); 00053 }; 00054 00055 #endif