| 
    xapian-core
    1.4.29
    
   | 
 
#include <localsubmatch.h>
 Inheritance diagram for LocalSubMatch:
 Collaboration diagram for LocalSubMatch:Public Member Functions | |
| LocalSubMatch (const Xapian::Database::Internal *db_, const Xapian::Query &query_, Xapian::termcount qlen_, const Xapian::RSet &rset_, const Xapian::Weight *wt_factory_, Xapian::doccount shard_index_) | |
| Constructor.  More... | |
| bool | prepare_match (bool nowait, Xapian::Weight::Internal &total_stats) | 
| Fetch and collate statistics.  More... | |
| void | start_match (Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, Xapian::Weight::Internal &total_stats) | 
| Start the match.  More... | |
| PostList * | get_postlist (MultiMatch *matcher, Xapian::termcount *total_subqs_ptr, Xapian::Weight::Internal &total_stats) | 
| Get PostList.  More... | |
| PostList * | make_synonym_postlist (PostList *or_pl, MultiMatch *matcher, double factor, bool wdf_disjoint) | 
| Convert a postlist into a synonym postlist.  More... | |
| LeafPostList * | open_post_list (const std::string &term, Xapian::termcount wqf, double factor, bool need_positions, bool in_synonym, QueryOptimiser *qopt, bool lazy_weight) | 
  Public Member Functions inherited from SubMatch | |
| virtual | ~SubMatch () | 
| Virtual destructor.  More... | |
  Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references.  More... | |
Private Member Functions | |
| void | operator= (const LocalSubMatch &) | 
| Don't allow assignment.  More... | |
| LocalSubMatch (const LocalSubMatch &) | |
| Don't allow copying.  More... | |
Private Attributes | |
| Xapian::Weight::Internal * | stats | 
| The statistics for the collection.  More... | |
| Xapian::Query | query | 
| The query.  More... | |
| Xapian::termcount | qlen | 
| The query length (used by some weighting schemes).  More... | |
| const Xapian::Database::Internal * | db | 
| The (sub-)Database we're searching.  More... | |
| Xapian::RSet | rset | 
| The RSet (used to calculate R and r).  More... | |
| const Xapian::Weight * | wt_factory | 
| Weight object (used as a factory by calling create on it).  More... | |
| Xapian::doccount | shard_index | 
| 0-based index for the subdatabase.  More... | |
Additional Inherited Members | |
  Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs | 
| Reference count.  More... | |
Definition at line 35 of file localsubmatch.h.
      
  | 
  private | 
Don't allow copying.
      
  | 
  inline | 
Constructor.
Definition at line 68 of file localsubmatch.h.
References get_postlist(), LOGCALL_CTOR, make_synonym_postlist(), open_post_list(), prepare_match(), and start_match().
      
  | 
  virtual | 
Get PostList.
Implements SubMatch.
Definition at line 190 of file localsubmatch.cc.
References Xapian::Query::empty(), QueryOptimiser::get_total_subqs(), Xapian::Query::internal, LOGCALL, query(), and RETURN.
Referenced by LocalSubMatch().
| PostList * LocalSubMatch::make_synonym_postlist | ( | PostList * | or_pl, | 
| MultiMatch * | matcher, | ||
| double | factor, | ||
| bool | wdf_disjoint | ||
| ) | 
Convert a postlist into a synonym postlist.
Definition at line 223 of file localsubmatch.cc.
References Xapian::PostingIterator::Internal::get_termfreq_est(), Xapian::PostingIterator::Internal::get_termfreq_est_using_stats(), Xapian::PostingIterator::Internal::get_termfreq_max(), LOGCALL, LOGVALUE, rare, RETURN, and usual.
Referenced by LocalSubMatch(), and QueryOptimiser::make_synonym_postlist().
| LeafPostList * LocalSubMatch::open_post_list | ( | const std::string & | term, | 
| Xapian::termcount | wqf, | ||
| double | factor, | ||
| bool | need_positions, | ||
| bool | in_synonym, | ||
| QueryOptimiser * | qopt, | ||
| bool | lazy_weight | ||
| ) | 
Definition at line 255 of file localsubmatch.cc.
References Xapian::Weight::clone(), QueryOptimiser::db_size, QueryOptimiser::get_hint_postlist(), Xapian::Weight::get_maxpart(), LeafPostList::get_termfreq(), Xapian::Weight::init_(), LOGCALL, LeafPostList::open_nearby_postlist(), RETURN, QueryOptimiser::set_hint_postlist(), LeafPostList::set_term(), and LeafPostList::set_termweight().
Referenced by LocalSubMatch(), QueryOptimiser::open_lazy_post_list(), and QueryOptimiser::open_post_list().
      
  | 
  private | 
Don't allow assignment.
      
  | 
  virtual | 
Fetch and collate statistics.
Implements SubMatch.
Definition at line 165 of file localsubmatch.cc.
References Xapian::Weight::Internal::accumulate_stats(), Assert, LOGCALL, and RETURN.
Referenced by LocalSubMatch().
      
  | 
  virtual | 
Start the match.
Implements SubMatch.
Definition at line 176 of file localsubmatch.cc.
References LOGCALL_VOID.
Referenced by LocalSubMatch().
      
  | 
  private | 
The (sub-)Database we're searching.
Definition at line 52 of file localsubmatch.h.
      
  | 
  private | 
The query length (used by some weighting schemes).
Definition at line 49 of file localsubmatch.h.
      
  | 
  private | 
The query.
Definition at line 46 of file localsubmatch.h.
      
  | 
  private | 
The RSet (used to calculate R and r).
R and r are used in probabilistic weighting formulae.
Definition at line 58 of file localsubmatch.h.
      
  | 
  private | 
0-based index for the subdatabase.
Definition at line 64 of file localsubmatch.h.
      
  | 
  private | 
The statistics for the collection.
Definition at line 43 of file localsubmatch.h.
      
  | 
  private | 
Weight object (used as a factory by calling create on it).
Definition at line 61 of file localsubmatch.h.