xapian-core  1.4.19
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LocalSubMatch Class Reference

#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...
 
PostListget_postlist (MultiMatch *matcher, Xapian::termcount *total_subqs_ptr, Xapian::Weight::Internal &total_stats)
 Get PostList. More...
 
PostListmake_synonym_postlist (PostList *or_pl, MultiMatch *matcher, double factor, bool wdf_disjoint)
 Convert a postlist into a synonym postlist. More...
 
LeafPostListopen_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::Internalstats
 The statistics for the collection. More...
 
Xapian::Query query
 The original query before any rearrangement. More...
 
Xapian::termcount qlen
 The query length (used by some weighting schemes). More...
 
const Xapian::Database::Internaldb
 The (sub-)Database we're searching. More...
 
Xapian::RSet rset
 The RSet (used to calculate R and r). More...
 
const Xapian::Weightwt_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...
 

Detailed Description

Definition at line 37 of file localsubmatch.h.

Constructor & Destructor Documentation

◆ LocalSubMatch() [1/2]

LocalSubMatch::LocalSubMatch ( const LocalSubMatch )
private

Don't allow copying.

◆ LocalSubMatch() [2/2]

LocalSubMatch::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_ 
)
inline

Member Function Documentation

◆ get_postlist()

PostList * LocalSubMatch::get_postlist ( MultiMatch matcher,
Xapian::termcount total_subqs_ptr,
Xapian::Weight::Internal total_stats 
)
virtual

Get PostList.

Implements SubMatch.

Definition at line 191 of file localsubmatch.cc.

References Xapian::Query::empty(), QueryOptimiser::get_total_subqs(), Xapian::Query::internal, LOGCALL, query(), and RETURN.

Referenced by LocalSubMatch().

◆ make_synonym_postlist()

PostList * LocalSubMatch::make_synonym_postlist ( PostList or_pl,
MultiMatch matcher,
double  factor,
bool  wdf_disjoint 
)

◆ open_post_list()

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 
)

◆ operator=()

void LocalSubMatch::operator= ( const LocalSubMatch )
private

Don't allow assignment.

◆ prepare_match()

bool LocalSubMatch::prepare_match ( bool  nowait,
Xapian::Weight::Internal total_stats 
)
virtual

Fetch and collate statistics.

Implements SubMatch.

Definition at line 166 of file localsubmatch.cc.

References Xapian::Weight::Internal::accumulate_stats(), Assert, LOGCALL, and RETURN.

Referenced by LocalSubMatch().

◆ start_match()

void LocalSubMatch::start_match ( Xapian::doccount  first,
Xapian::doccount  maxitems,
Xapian::doccount  check_at_least,
Xapian::Weight::Internal total_stats 
)
virtual

Start the match.

Implements SubMatch.

Definition at line 177 of file localsubmatch.cc.

References LOGCALL_VOID.

Referenced by LocalSubMatch().

Member Data Documentation

◆ db

const Xapian::Database::Internal* LocalSubMatch::db
private

The (sub-)Database we're searching.

Definition at line 54 of file localsubmatch.h.

◆ qlen

Xapian::termcount LocalSubMatch::qlen
private

The query length (used by some weighting schemes).

Definition at line 51 of file localsubmatch.h.

◆ query

Xapian::Query LocalSubMatch::query
private

The original query before any rearrangement.

Definition at line 48 of file localsubmatch.h.

◆ rset

Xapian::RSet LocalSubMatch::rset
private

The RSet (used to calculate R and r).

R and r are used in probabilistic weighting formulae.

Definition at line 60 of file localsubmatch.h.

◆ shard_index

Xapian::doccount LocalSubMatch::shard_index
private

0-based index for the subdatabase.

Definition at line 66 of file localsubmatch.h.

◆ stats

Xapian::Weight::Internal* LocalSubMatch::stats
private

The statistics for the collection.

Definition at line 45 of file localsubmatch.h.

◆ wt_factory

const Xapian::Weight* LocalSubMatch::wt_factory
private

Weight object (used as a factory by calling create on it).

Definition at line 63 of file localsubmatch.h.


The documentation for this class was generated from the following files: