35           range_start(range_start_),
    53     return "Xapian::DecreasingValueWeightPostingSource";
    67     const char * pos = s.data();
    68     const char * end = pos + s.size();
    76                                    "DecreasingValueWeightPostingSource");
   153     return "DecreasingValueWeightPostingSource()";
 The Xapian namespace contains public interfaces for the Xapian library. 
 
std::string serialise() const
Serialise object parameters into a string. 
 
void skip_if_in_range(double min_wt)
Skip the iterator forward if in the decreasing range, and weight is low. 
 
length encoded as a string 
 
This class is used to access a database, or a group of databases. 
 
void set_maxweight(double max_weight)
Specify an upper bound on what get_weight() will return from now on. 
 
void done()
End the iteration. 
 
std::string get_description() const
Return a string describing this object. 
 
Xapian::docid get_docid() const
Return the current docid. 
 
bool check(Xapian::docid min_docid, double min_wt)
Check if the specified docid occurs. 
 
void skip_to(Xapian::docid min_docid, double min_wt)
Advance to the specified docid. 
 
std::string name() const
Name of the posting source class. 
 
bool at_end() const
Return true if the current position is past the last entry in this list. 
 
External sources of posting information. 
 
DecreasingValueWeightPostingSource * unserialise(const std::string &serialised) const
Create object given string serialisation returned by serialise(). 
 
std::string encode_length(T len)
Encode a length as a variable-length string. 
 
Read weights from a value which is known to decrease as docid increases. 
 
Hierarchy of classes which Xapian can throw as exceptions. 
 
bool check(Xapian::docid min_docid, double min_wt)
Check if the specified docid occurs. 
 
DecreasingValueWeightPostingSource * clone() const
Clone the posting source. 
 
bool items_at_end
Flag, set to true if there are docs after the end of the range. 
 
Xapian::docid range_end
End of range of docids for which weights are known to be decreasing. 
 
void skip_to(Xapian::docid min_docid, double min_wt)
Advance to the specified docid. 
 
double get_weight() const
Return the weight contribution for the current document. 
 
void init(const Database &db_)
Set this PostingSource to the start of the list of postings. 
 
A posting source which reads weights from a value slot. 
 
double get_weight() const
Return the weight contribution for the current document. 
 
void init(const Xapian::Database &db_)
Set this PostingSource to the start of the list of postings. 
 
Indicates a problem communicating with a remote database. 
 
unsigned valueno
The number for a value slot in a document. 
 
double get_maxweight() const
Return the currently set upper bound on what get_weight() can return. 
 
void next(double min_wt)
Advance the current position to the next matching document. 
 
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document. 
 
DecreasingValueWeightPostingSource(Xapian::valueno slot_, Xapian::docid range_start_=0, Xapian::docid range_end_=0)
Construct a DecreasingValueWeightPostingSource. 
 
void decode_length(const char **p, const char *end, unsigned &out)
Decode a length encoded by encode_length. 
 
Xapian::docid range_start
Start of range of docids for which weights are known to be decreasing. 
 
double curr_weight
Weight at current position. 
 
Xapian::valueno get_slot() const
The slot we're reading values from. 
 
Xapian::Database get_database() const
The database we're reading values from. 
 
void next(double min_wt)
Advance the current position to the next matching document.