34 PostingIterator::decref()
37 if (--internal->_refs == 0)
41 PostingIterator::PostingIterator(
Internal *internal_) : internal(internal_)
44 if (!
internal)
return;
60 : internal(o.internal)
133 PostingIterator::positionlist_count()
const
164 string desc =
"PostingIterator(";
166 desc +=
internal->get_description();
Class for iterating over term positions.
Xapian::termcount get_doclength() const
Xapian::termcount get_unique_terms() const
bool skip_to(Xapian::docid did)
Xapian::termcount get_wdfdocmax() const
PositionList * open_position_list() const
Xapian::termcount get_wdf() const
Xapian::docid get_docid() const
Class for iterating over a list of terms.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
void skip_to(Xapian::docid did)
Advance the iterator to document did.
Xapian::docid operator*() const
Return the document id at the current position.
PostingIterator & operator=(const PostingIterator &o)
Assignment.
std::string get_description() const
Return a string describing this object.
Xapian::termcount get_wdfdocmax() const
Return the max_wdf in the current document.
PostingIterator & operator++()
Advance the iterator to the next position.
Xapian::termcount get_doclength() const
Return the length of the document at the current position.
PositionIterator positionlist_begin() const
Return a PositionIterator for the current document.
PostingIterator() noexcept
Default constructor.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Various assertion macros.
Class for iterating over a list of document ids.
Xapian::PostingIterator internals.