| 
    xapian-core
    1.4.29
    
   | 
 
A postlist in a remote database. More...
#include <net_postlist.h>
 Inheritance diagram for NetworkPostList:
 Collaboration diagram for NetworkPostList:Public Member Functions | |
| NetworkPostList (Xapian::Internal::intrusive_ptr< const RemoteDatabase > db_, const string &term_) | |
| Constructor.  More... | |
| Xapian::doccount | get_termfreq () const | 
| Get number of documents indexed by this term.  More... | |
| Xapian::docid | get_docid () const | 
| Get the current document ID.  More... | |
| Xapian::termcount | get_doclength () const | 
| Get the length of the current document.  More... | |
| Xapian::termcount | get_unique_terms () const | 
| Get the number of unique terms in the current document.  More... | |
| Xapian::termcount | get_wdf () const | 
| Get the Within Document Frequency of the term in the current document.  More... | |
| 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 (double) | 
| Move to the next document in the postlist (the weight parameter is ignored).  More... | |
| PostList * | skip_to (Xapian::docid did, double weight) | 
| Skip forward to the next document with document ID >= the supplied document ID (the weight parameter is ignored).  More... | |
| bool | at_end () const | 
| Return true if and only if we've moved off the end of the list.  More... | |
| Xapian::termcount | get_wdf_upper_bound () const | 
| string | get_description () const | 
| Get a description of the postlist.  More... | |
  Public Member Functions inherited from LeafPostList | |
| ~LeafPostList () | |
| void | set_termweight (const Xapian::Weight *weight_) | 
| Set the weighting scheme to use during matching.  More... | |
| double | resolve_lazy_termweight (Xapian::Weight *weight_, Xapian::Weight::Internal *stats, Xapian::termcount qlen, Xapian::termcount wqf, double factor) | 
| Xapian::doccount | get_termfreq_min () const | 
| Get a lower bound on the number of documents indexed by this term.  More... | |
| Xapian::doccount | get_termfreq_max () const | 
| Get an upper bound on the number of documents indexed by this term.  More... | |
| Xapian::doccount | get_termfreq_est () const | 
| Get an estimate of the number of documents indexed by this term.  More... | |
| double | get_maxweight () const | 
| Return an upper bound on what get_weight() can return.  More... | |
| double | get_weight () const | 
| Return the weight contribution for the current position.  More... | |
| double | recalc_maxweight () | 
| Recalculate the upper bound on what get_weight() can return.  More... | |
| TermFreqs | get_termfreq_est_using_stats (const Xapian::Weight::Internal &stats) const | 
| Get an estimate for the termfreq and reltermfreq, given the stats.  More... | |
| Xapian::termcount | count_matching_subqs () const | 
| Count the number of leaf subqueries which match at the current position.  More... | |
| void | gather_position_lists (OrPositionList *orposlist) | 
| Gather PositionList* objects for a subtree.  More... | |
| virtual LeafPostList * | open_nearby_postlist (const std::string &term_) const | 
| Open another postlist from the same database.  More... | |
| void | set_term (const std::string &term_) | 
| Set the term name.  More... | |
  Public Member Functions inherited from Xapian::PostingIterator::Internal | |
| virtual | ~Internal () | 
| 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... | |
| virtual const std::string * | get_sort_key () const | 
| virtual const std::string * | get_collapse_key () const | 
| If the collapse key is already known, return it.  More... | |
| virtual 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... | |
| virtual Internal * | check (Xapian::docid did, double w_min, bool &valid) | 
| Check if the specified docid occurs in this postlist.  More... | |
| Internal * | next () | 
| Advance the current position to the next document in the postlist.  More... | |
| Internal * | skip_to (Xapian::docid did) | 
| Skip forward to the specified docid.  More... | |
  Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references.  More... | |
Private Member Functions | |
| void | append_posting (const string &serialised) | 
| Append a posting to the end of the postlist.  More... | |
Private Attributes | |
| Xapian::Internal::intrusive_ptr< const RemoteDatabase > | db | 
| string | postings | 
| bool | started | 
| const char * | pos | 
| const char * | pos_end | 
| Xapian::docid | lastdocid | 
| Xapian::termcount | lastwdf | 
| Xapian::doccount | termfreq | 
Friends | |
| class | RemoteDatabase | 
Additional Inherited Members | |
  Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs | 
| Reference count.  More... | |
  Protected Member Functions inherited from LeafPostList | |
| LeafPostList (const std::string &term_) | |
| Only constructable as a base class for derived classes.  More... | |
  Protected Member Functions inherited from Xapian::PostingIterator::Internal | |
| Internal () | |
| Only constructable as a base class for derived classes.  More... | |
  Protected Attributes inherited from LeafPostList | |
| const Xapian::Weight * | weight | 
| bool | need_doclength | 
| bool | need_unique_terms | 
| std::string | term | 
| The term name for this postlist (empty for an alldocs postlist).  More... | |
A postlist in a remote database.
Definition at line 36 of file net_postlist.h.
      
  | 
  inline | 
Constructor.
Definition at line 60 of file net_postlist.h.
References RemoteDatabase::get_doclength(), RemoteDatabase::get_unique_terms(), RemoteDatabase::get_wdf_upper_bound(), RemoteDatabase::open_position_list(), and RemoteDatabase::read_post_list().
      
  | 
  inlineprivate | 
Append a posting to the end of the postlist.
Definition at line 52 of file net_postlist.h.
References Assert.
Referenced by RemoteDatabase::read_post_list().
      
  | 
  virtual | 
Return true if and only if we've moved off the end of the list.
Implements Xapian::PostingIterator::Internal.
Definition at line 102 of file net_postlist.cc.
      
  | 
  virtual | 
Get a description of the postlist.
Implements Xapian::PostingIterator::Internal.
Definition at line 118 of file net_postlist.cc.
References description_append().
      
  | 
  virtual | 
Get the current document ID.
Implements Xapian::PostingIterator::Internal.
Definition at line 39 of file net_postlist.cc.
      
  | 
  virtual | 
Get the length of the current document.
Implements Xapian::PostingIterator::Internal.
Definition at line 45 of file net_postlist.cc.
      
  | 
  virtual | 
Get number of documents indexed by this term.
Implements LeafPostList.
Definition at line 33 of file net_postlist.cc.
      
  | 
  virtual | 
Get the number of unique terms in the current document.
Implements Xapian::PostingIterator::Internal.
Definition at line 51 of file net_postlist.cc.
      
  | 
  virtual | 
Get the Within Document Frequency of the term in the current document.
Reimplemented from Xapian::PostingIterator::Internal.
Definition at line 57 of file net_postlist.cc.
      
  | 
  virtual | 
      
  | 
  virtual | 
Move to the next document in the postlist (the weight parameter is ignored).
Implements Xapian::PostingIterator::Internal.
Definition at line 69 of file net_postlist.cc.
References decode_length().
      
  | 
  virtual | 
Read the position list for the term in the current document and return a pointer to it (not owned by the PostList).
Reimplemented from Xapian::PostingIterator::Internal.
Definition at line 63 of file net_postlist.cc.
      
  | 
  virtual | 
Skip forward to the next document with document ID >= the supplied document ID (the weight parameter is ignored).
Implements Xapian::PostingIterator::Internal.
Definition at line 92 of file net_postlist.cc.
      
  | 
  friend | 
Definition at line 37 of file net_postlist.h.
      
  | 
  private | 
Definition at line 39 of file net_postlist.h.
      
  | 
  private | 
Definition at line 46 of file net_postlist.h.
      
  | 
  private | 
Definition at line 47 of file net_postlist.h.
      
  | 
  private | 
Definition at line 43 of file net_postlist.h.
      
  | 
  private | 
Definition at line 44 of file net_postlist.h.
      
  | 
  private | 
Definition at line 41 of file net_postlist.h.
      
  | 
  private | 
Definition at line 42 of file net_postlist.h.
      
  | 
  private | 
Definition at line 49 of file net_postlist.h.