21 #ifndef XAPIAN_INCLUDED_TERMLIST_H
22 #define XAPIAN_INCLUDED_TERMLIST_H
32 class PositionIterator;
Collates statistics while calculating term weight in an ESet.
Base class for objects managed by intrusive_ptr.
Class for iterating over term positions.
Abstract base class for termlists.
virtual bool at_end() const =0
Return true if the current position is past the last term in this list.
virtual Internal * skip_to(const std::string &term)=0
Skip forward to the specified term.
void operator=(const Internal &)
Don't allow assignment.
virtual std::string get_termname() const =0
Return the termname at the current position.
virtual Xapian::PositionIterator positionlist_begin() const =0
Return a PositionIterator for the current position.
Internal()
Only constructable as a base class for derived classes.
virtual void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for 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...
virtual const std::vector< Xapian::termpos > * get_vector_termpos() const
Get pointer to vector<termpos> if that's the internal representation.
Internal(const Internal &)
Don't allow copying.
virtual Internal * next()=0
Advance the current position to the next term in the termlist.
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.
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.
Class for iterating over a list of terms.
Xapian::TermIterator::Internal TermList