34 const map<Xapian::docid, Xapian::termcount> & doclens_)
37 doclens_it(doclens.begin())
39 LOGCALL_CTOR(DB,
"ChertAllDocsModifiedPostList", db_.
get() | doccount_ | doclens_);
45 LOGCALL_VOID(DB,
"ChertAllDocsModifiedPostList::skip_deletes", w_min);
49 if (
doclens_it->second != static_cast<Xapian::termcount>(-1))
return;
102 doclens_it->second != static_cast<Xapian::termcount>(-1)) {
119 LOGCALL(DB,
PostList *,
"ChertAllDocsModifiedPostList::skip_to", desired_did | w_min);
133 LOGCALL(DB,
bool,
"ChertAllDocsModifiedPostList::at_end", NO_ARGS);
140 string desc =
"ChertAllDocsModifiedPostList(did=";
Abstract base class for postlists.
void skip_deletes(double w_min)
Skip over deleted documents after a next() or skip_to().
map< Xapian::docid, Xapian::termcount >::const_iterator doclens_it
Current position in the doclens list.
map< Xapian::docid, Xapian::termcount > doclens
Modifications to apply to the ChertAllDocsPostList.
Xapian::docid get_docid() const
Return the current docid.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Convert types to std::string.
Xapian::docid get_docid() const
Returns the current docid.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
Xapian::termcount get_unique_terms(Xapian::docid did) const
Virtual methods of Database::Internal.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
ChertAllDocsModifiedPostList(const ChertAllDocsModifiedPostList &)
Don't allow copying.
PostList * skip_to(Xapian::docid desired_did, double w_min)
Skip forward to the specified docid.
bool have_started
Whether we've started reading the list yet.
A ChertAllDocsPostList plus pending modifications.
Internal * next()
Advance the current position to the next document in the postlist.
string str(int value)
Convert int to std::string.
bool at_end() const
Return true if the current position is past the last entry in this list.
bool at_end() const
Return true if and only if we're off the end of the list.
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
C++ class definition for chert database.
Xapian::termcount get_doclength() const
Return the length of current document.
Xapian::Internal::intrusive_ptr< const ChertDatabase > this_db
The database we are searching.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
std::string get_description() const
Return a string description of this object.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
A smart pointer that uses intrusive reference counting.
PostList * skip_to(Xapian::docid desired_did, double w_min)
Skip to next document with docid >= docid.
Xapian::termcount get_doclength() const
Return the length of current document.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)