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()) {
PositionList from an InMemory DB or a Document object.
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.
Abstract base class for termlists.
string get_termname() const
Return the termname at the current position.
TermList * next()
Advance the current position to the next term in the termlist.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
TermList * skip_to(const std::string &term)
Skip forward to the specified term.
A position list in a inmemory database.
bool at_end() const
Return true if the current position is past the last term in this list.
Class for iterating over term positions.
Xapian::Document::Internal::document_terms::const_iterator it_end
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.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
MapTermList(const Xapian::Document::Internal::document_terms::const_iterator &it_, const Xapian::Document::Internal::document_terms::const_iterator &it_end_)
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Abstract base class for termlists.
Various assertion macros.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.