Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

DiskTermListFileIterator.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2005 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 
00012 //
00013 // DiskTermListFileIterator
00014 //
00015 // 25 January 2005 -- tds
00016 //
00017 
00018 #ifndef INDRI_DISKTERMLISTFILEITERATOR_HPP
00019 #define INDRI_DISKTERMLISTFILEITERATOR_HPP
00020 
00021 #include "indri/TermListFileIterator.hpp"
00022 #include "indri/SequentialReadBuffer.hpp"
00023 #include "indri/TermList.hpp"
00024 #include "IndexTypes.hpp"
00025 
00026 namespace indri {
00027   namespace index {
00028     class DiskTermListFileIterator : public TermListFileIterator {
00029     private:
00030       TermList _termList;
00031       indri::file::File& _termListFile;
00032       indri::file::SequentialReadBuffer _buffer;
00033       UINT64 _fileSize;
00034       bool _finished;
00035       int _currentDocument;
00036 
00037     public:
00038       DiskTermListFileIterator( indri::file::File& termListFile );
00039 
00040       void startIteration();
00041       TermList* currentEntry();
00042       bool nextEntry();
00043       bool nextEntry( lemur::api::DOCID_T documentID );
00044       bool finished();
00045     };
00046   }
00047 }
00048 
00049 #endif // INDRI_DISKTERMLISTFILEITERATOR_HPP
00050 

Generated on Tue Jun 15 11:02:53 2010 for Lemur by doxygen 1.3.4