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