21 #ifndef XAPIAN_INCLUDED_TERMLIST_H
22 #define XAPIAN_INCLUDED_TERMLIST_H
29 #include <string_view>
Collates statistics while calculating term weight in an ESet.
Base class for objects managed by intrusive_ptr.
Abstract base class for iterating term positions in a document.
Abstract base class for termlists.
virtual const Xapian::VecCOW< Xapian::termpos > * get_vec_termpos() const
Get pointer to VecCOW<termpos> if that's the internal representation.
virtual Internal * skip_to(std::string_view term)=0
Skip forward to the specified term.
virtual PositionList * positionlist_begin() const =0
Return PositionList for the current position.
Internal()
Only constructable as a base class for derived classes.
void operator=(const Internal &)=delete
Don't allow assignment.
virtual void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for the current term.
std::string current_term
The current term.
size_t shard_index
Which shard of a multidatabase this is from.
virtual Xapian::doccount get_termfreq() const =0
Return the term frequency for the term at the current position.
virtual ~Internal()
We have virtual methods and want to be able to delete derived classes using a pointer to the base cla...
Internal(const Internal &)=delete
Don't allow copying.
virtual Internal * next()=0
Advance the current position to the next term in the termlist.
const std::string & get_termname() const
Return the termname at the current position.
virtual Xapian::termcount positionlist_count() const =0
Return the length of the position list for the current position.
virtual Xapian::termcount get_approx_size() const =0
Return approximate size of this termlist.
virtual Xapian::termcount get_wdf() const =0
Return the wdf for the term at the current position.
Suitable for "simple" type T.
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 doccount
A count of documents.
Abstract base class for iterating term positions in a document.
Custom vector implementations using small vector optimisation.
Class for iterating over a list of terms.
Xapian::TermIterator::Internal TermList