3 // DocumentOrderedBinnedIndex
5 // 15 October 2007 -- tds
7 // BSD License (http://galagosearch.org/license)
10 #ifndef GALAGO_DOCUMENTORDEREDBINNEDINDEX_HPP
11 #define GALAGO_DOCUMENTORDEREDBINNEDINDEX_HPP
15 #include "DocumentOrderedBinnedListReader.hpp"
16 #include "DocumentOrderedBinnedIterator.hpp"
17 #include "DocumentNameReader.hpp"
18 #include "indri/Parameters.hpp"
20 class DocumentOrderedBinnedIndex
{
22 std::map
<std::string
, DocumentOrderedBinnedListReader
*> _readers
;
25 DocumentNameReader _documents
;
26 indri::api::Parameters _parameters
;
29 void openRead( const std::string
& path
);
32 DocumentOrderedBinnedIterator
* getTerm( const std::string
& term
) const;
33 DocumentOrderedBinnedIterator
* getTerm( const std::string
& term
, const std::string
& field
) const;
35 DocumentOrderedBinnedListReader
* getReader() const;
36 DocumentOrderedBinnedListReader
* getReader( const std::string
& field
) const;
38 std::string
getDocument( int document
);
41 #endif // GALAGO_DOCUMENTORDEREDBINNEDINDEX_HPP