21 #ifndef XAPIAN_INCLUDED_GLASS_TERMLIST_H
22 #define XAPIAN_INCLUDED_GLASS_TERMLIST_H
A TermList in a glass database.
Xapian::termcount get_doclength() const
Return the length of this document.
Xapian::termcount get_unique_terms() const
Return the number of unique terms.
Xapian::termcount termlist_size
The number of entries in this termlist.
std::string data
The tag value from the termlist table which holds the encoded termlist.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
TermList * next()
Advance the current position to the next term in the termlist.
std::string current_term
The termname at the current position.
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
Xapian::termcount current_wdf
The wdf for the term at the current position.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::docid did
The document id that this TermList is for.
TermList * skip_to(const std::string &term)
Skip forward to the specified term.
const char * end
Pointer to the end of the encoded tag value.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
Xapian::doccount current_termfreq
The term frequency for the term at the current position.
Xapian::Internal::intrusive_ptr< const GlassDatabase > db
The database we're reading data from.
const char * pos
Current position with the encoded tag value held in data.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
GlassTermList(const GlassTermList &)
Don't allow copying.
void operator=(const GlassTermList &)
Don't allow assignment.
bool at_end() const
Return true if the current position is past the last term in this list.
Xapian::termcount doclen
The length of document did.
std::string get_termname() const
Return the termname at the current position.
void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for the current term.
Collates statistics while calculating term weight in an ESet.
Class for iterating over term positions.
Abstract base class for termlists.
C++ class definition for glass database.
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.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class for iterating over term positions.
Abstract base class for termlists.