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

FieldListIterator.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2004 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 //
00014 // KeyfileFieldListIterator
00015 //
00016 // 10 January 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_FIELDLISTITERATOR_HPP
00020 #define INDRI_FIELDLISTITERATOR_HPP
00021 
00022 #include "indri/Extent.hpp"
00023 
00024 namespace indri {
00025   namespace index {
00026 
00027     struct FieldExtentInfo {
00028       lemur::api::DOCID_T documentID;
00029       indri::utility::greedy_vector<indri::index::Extent> extents;
00030       indri::utility::greedy_vector<INT64> numbers;
00031     };
00032 
00033     class FieldListIterator {
00034     public:
00035       virtual void startIteration();
00036       virtual FieldExtentInfo* currentEntry();
00037       virtual bool nextEntry();
00038       virtual bool nextEntry( lemur::api::DOCID_T documentID );
00039     };
00040   }
00041 }
00042 
00043 #endif // INDRI_FIELDLISTITERATOR_HPP

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