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 // DocExtentListIterator 00014 // 00015 // 24 November 2004 -- tds 00016 // 00017 00018 #ifndef INDRI_DOCEXTENTLISTITERATOR_HPP 00019 #define INDRI_DOCEXTENTLISTITERATOR_HPP 00020 00021 #include "indri/Extent.hpp" 00022 #include "indri/indri-platform.h" 00023 #include "indri/greedy_vector" 00024 #include "IndexTypes.hpp" 00025 00026 namespace indri { 00027 namespace index { 00028 class DocExtentListIterator { 00029 public: 00030 struct DocumentExtentData { 00031 int document; 00032 indri::utility::greedy_vector<Extent> extents; 00033 indri::utility::greedy_vector<INT64> numbers; 00034 }; 00035 00036 virtual ~DocExtentListIterator() {}; 00037 00038 virtual void startIteration() = 0; 00039 virtual bool finished() const = 0; 00040 virtual bool nextEntry() = 0; 00041 virtual bool nextEntry( lemur::api::DOCID_T documentID ) = 0; 00042 virtual DocumentExtentData* currentEntry() = 0; 00043 }; 00044 } 00045 } 00046 00047 #endif // INDRI_DOCEXTENTLISTITERATOR_HPP