|
xapian-core
2.0.0
|
PostList which applies a MatchDecider. More...
#include <deciderpostlist.h>
Inheritance diagram for DeciderPostList:
Collaboration diagram for DeciderPostList:Public Member Functions | |
| DeciderPostList (PostList *pl_, EstimateOp *estimate_op_, const Xapian::MatchDecider *decider_, ValueStreamDocument *vsdoc, PostListTree *pltree_) | |
| std::string | get_description () const |
| Return a string description of this object. More... | |
Public Member Functions inherited from SelectPostList | |
| SelectPostList (PostList *pl_, EstimateOp *estimate_op_, PostListTree *pltree_) | |
| ~SelectPostList () | |
| double | get_weight (Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const |
| Return the weight contribution for the current position. More... | |
| bool | at_end () const |
| Return true if the current position is past the last entry in this list. More... | |
| PostList * | next (double w_min) |
| Advance the current position to the next document in the postlist. More... | |
| PostList * | skip_to (Xapian::docid did, double w_min) |
| Skip forward to the specified docid. More... | |
| PostList * | check (Xapian::docid did, double w_min, bool &valid) |
| Check if the specified docid occurs in this postlist. More... | |
Public Member Functions inherited from WrapperPostList | |
| WrapperPostList (PostList *pl_) | |
| ~WrapperPostList () | |
| Xapian::docid | get_docid () const |
| Return the current docid. More... | |
| double | get_weight (Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const |
| Return the weight contribution for the current position. More... | |
| bool | at_end () const |
| Return true if the current position is past the last entry in this list. More... | |
| double | recalc_maxweight () |
| Recalculate the upper bound on what get_weight() can return. More... | |
| PositionList * | read_position_list () |
| Read the position list for the term in the current document and return a pointer to it (owned by the PostList). More... | |
| PostList * | next (double w_min) |
| Advance the current position to the next document in the postlist. More... | |
| PostList * | skip_to (Xapian::docid, double w_min) |
| Skip forward to the specified docid. More... | |
| std::string | get_description () const |
| Return a string description of this object. More... | |
| Xapian::termcount | get_wdf () const |
| Return the wdf for the document at the current position. More... | |
| Xapian::termcount | count_matching_subqs () const |
| Count the number of leaf subqueries which match at the current position. More... | |
Public Member Functions inherited from Xapian::Internal::PostList | |
| virtual | ~PostList () |
| We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More... | |
| Xapian::doccount | get_termfreq () const |
| Get an estimate of the number of documents this PostList will return. More... | |
| virtual PositionList * | open_position_list () const |
| Read the position list for the term in the current document and return a pointer to it (not owned by the PostList). More... | |
| PostList * | next () |
| Advance the current position to the next document in the postlist. More... | |
| PostList * | skip_to (Xapian::docid did) |
| Skip forward to the specified docid. More... | |
| virtual void | gather_position_lists (OrPositionList *orposlist) |
| Gather PositionList* objects for a subtree. More... | |
| virtual void | get_docid_range (docid &first, docid &last) const |
| Get the bounds on the range of docids this PostList can return. More... | |
Private Member Functions | |
| bool | test_doc () |
| Test the current with the MatchDecider. More... | |
Private Attributes | |
| const Xapian::MatchDecider * | decider |
| The MatchDecider to apply. More... | |
| Xapian::Document | doc |
| The document to test. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Xapian::Internal::PostList | |
| PostList () | |
| Only constructable as a base class for derived classes. More... | |
Protected Attributes inherited from SelectPostList | |
| Xapian::doccount | accepted = 0 |
| Number of times test_doc() returned true. More... | |
| Xapian::doccount | rejected = 0 |
| Number of times test_doc() returned false. More... | |
| EstimateOp * | estimate_op |
| Object to report accepted/rejected counts to. More... | |
Protected Attributes inherited from WrapperPostList | |
| PostList * | pl |
Protected Attributes inherited from Xapian::Internal::PostList | |
| Xapian::doccount | termfreq |
| Estimate of the number of documents this PostList will return. More... | |
PostList which applies a MatchDecider.
Definition at line 37 of file deciderpostlist.h.
|
inline |
Definition at line 48 of file deciderpostlist.h.
|
virtual |
Return a string description of this object.
Implements Xapian::Internal::PostList.
Definition at line 49 of file deciderpostlist.cc.
|
privatevirtual |
Test the current with the MatchDecider.
Implements SelectPostList.
Definition at line 31 of file deciderpostlist.cc.
References ValueStreamDocument::set_shard_document().
|
private |
The MatchDecider to apply.
Definition at line 39 of file deciderpostlist.h.
|
private |
The document to test.
Definition at line 42 of file deciderpostlist.h.