23 #ifndef OM_HGUARD_MAPTERMLIST_H
24 #define OM_HGUARD_MAPTERMLIST_H
37 Xapian::Document::Internal::document_terms::const_iterator
it;
38 Xapian::Document::Internal::document_terms::const_iterator
it_end;
42 MapTermList(
const Xapian::Document::Internal::document_terms::const_iterator &it_,
43 const Xapian::Document::Internal::document_terms::const_iterator &it_end_)
44 : it(it_), it_end(it_end_), started(
false)
65 return it->second.wdf;
74 return it->second.get_vector_termpos();
78 auto p = it->second.get_vector_termpos();
83 return it->second.positionlist_count();
93 while (it != it_end && it->second.is_deleted()) {
100 while (it != it_end && it->first < term) {
104 while (it != it_end && it->second.is_deleted()) {
A position list in a inmemory database.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
TermList * skip_to(const std::string &term)
Skip forward to the specified term.
Xapian::Document::Internal::document_terms::const_iterator it_end
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::Document::Internal::document_terms::const_iterator it
const std::vector< Xapian::termpos > * get_vector_termpos() const
Get pointer to vector<termpos> if that's the internal representation.
bool at_end() const
Return true if the current position is past the last term in this list.
TermList * next()
Advance the current position to the next term in the termlist.
string get_termname() const
Return the termname at the current position.
MapTermList(const Xapian::Document::Internal::document_terms::const_iterator &it_, const Xapian::Document::Internal::document_terms::const_iterator &it_end_)
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
InvalidOperationError indicates the API was used in an invalid way.
Class for iterating over term positions.
Abstract base class for termlists.
PositionList from an InMemory DB or a Document object.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
Abstract base class for termlists.