37 current_position(items.begin()),
39 document_length(document_length_),
40 database_size(database_size_),
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
bool at_end() const
Return true if the current position is past the last term in this list.
vector< NetworkTermListItem >::const_iterator current_position
The current position in the list.
void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for the current term.
Abstract base class for termlists.
Xapian::termcount get_approx_size() const
Get the number of terms in the termlist.
Xapian::Internal::intrusive_ptr< const RemoteDatabase > this_db
Keep a reference to our database.
Hierarchy of classes which Xapian can throw as exceptions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
bool started
Whether we have yet started iterating through the list.
void accumulate(size_t shard_index, Xapian::termcount wdf, Xapian::termcount doclen, Xapian::doccount subtf, Xapian::doccount subdbsize)
Xapian::termcount document_length
The length of the document for which this is the termlist.
Xapian::docid did
The id of the document this termlist came from (or 0 if not applicable).
Class for iterating over term positions.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
size_t shard_index
Which shard of a multidatabase this is from.
PositionList * open_position_list(Xapian::docid did, const string &tname) const
Open a position list for the given term in the given document.
Collates statistics while calculating term weight in an ESet.
TermList * next()
Advance the current position to the next term in the termlist.
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
A smart pointer that uses intrusive reference counting.
vector< NetworkTermListItem > items
The list of items comprising the termlist.
NetworkTermList(Xapian::termcount document_length_, Xapian::doccount database_size_, Xapian::Internal::intrusive_ptr< const RemoteDatabase > this_db_, Xapian::docid did_)
Standard constructor is private: NetworkTermLists are created by RemoteDatabase object only...
Xapian::doccount database_size
The number of documents in the database in which this document resides.
TermList * skip_to(const std::string &term)
Skip forward to the specified term.
UnimplementedError indicates an attempt to use an unimplemented feature.
string get_termname() const
Return the termname at the current position.