LocalSubMatch Class Reference

#include <localsubmatch.h>

Inheritance diagram for LocalSubMatch:

Inheritance graph
[legend]
Collaboration diagram for LocalSubMatch:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LocalSubMatch (const Xapian::Database::Internal *db_, const Xapian::Query::Internal *query_, Xapian::termcount qlen_, const Xapian::RSet &rset_, const Xapian::Weight *wt_factory_)
 Constructor.
bool prepare_match (bool nowait, Xapian::Weight::Internal &total_stats)
 Fetch and collate statistics.
void start_match (Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const Xapian::Weight::Internal &total_stats)
 Start the match.
PostListget_postlist_and_term_info (MultiMatch *matcher, std::map< std::string, Xapian::MSet::Internal::TermFreqAndWeight > *termfreqandwts, Xapian::termcount *total_subqs_ptr)
 Get PostList and term info.
PostListmake_synonym_postlist (PostList *or_pl, MultiMatch *matcher, double factor)
 Convert a postlist into a synonym postlist.
PostListpostlist_from_op_leaf_query (const Xapian::Query::Internal *query, double factor)
 Convert an OP_LEAF query to a PostList.

Private Member Functions

void operator= (const LocalSubMatch &)
 Don't allow assignment.
 LocalSubMatch (const LocalSubMatch &)
 Don't allow copying.

Private Attributes

const Xapian::Weight::Internalstats
 The statistics for the collection.
const Xapian::Query::Internalquery
 The original query before any rearrangement.
Xapian::termcount qlen
 The query length (used by some weighting schemes).
const Xapian::Database::Internaldb
 The (sub-)Database we're searching.
Xapian::RSet rset
 The RSet (used to calculate R and r).
const Xapian::Weightwt_factory
 Weight object (used as a factory by calling create on it).
std::map< std::string,
Xapian::MSet::Internal::TermFreqAndWeight > * 
term_info
 The termfreqs and weights of terms used in orig_query, or NULL.


Detailed Description

Definition at line 34 of file localsubmatch.h.


Constructor & Destructor Documentation

LocalSubMatch::LocalSubMatch ( const LocalSubMatch  )  [private]

Don't allow copying.

LocalSubMatch::LocalSubMatch ( const Xapian::Database::Internal db_,
const Xapian::Query::Internal query_,
Xapian::termcount  qlen_,
const Xapian::RSet rset_,
const Xapian::Weight wt_factory_ 
) [inline]

Constructor.

Definition at line 68 of file localsubmatch.h.

References LOGCALL_CTOR.


Member Function Documentation

PostList * LocalSubMatch::get_postlist_and_term_info ( MultiMatch matcher,
std::map< std::string, Xapian::MSet::Internal::TermFreqAndWeight > *  termfreqandwts,
Xapian::termcount total_subqs_ptr 
) [virtual]

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

void LocalSubMatch::operator= ( const LocalSubMatch  )  [private]

Don't allow assignment.

PostList * LocalSubMatch::postlist_from_op_leaf_query ( const Xapian::Query::Internal query,
double  factor 
)

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

Fetch and collate statistics.

Implements SubMatch.

Definition at line 44 of file localsubmatch.cc.

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

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

Start the match.

Implements SubMatch.

Definition at line 56 of file localsubmatch.cc.

References LOGCALL_VOID, and stats.


Member Data Documentation

The (sub-)Database we're searching.

Definition at line 51 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), postlist_from_op_leaf_query(), and prepare_match().

The query length (used by some weighting schemes).

Definition at line 48 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), make_synonym_postlist(), and postlist_from_op_leaf_query().

The original query before any rearrangement.

Definition at line 45 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), and prepare_match().

The RSet (used to calculate R and r).

R and r are used in probabilistic weighting formulae.

Definition at line 57 of file localsubmatch.h.

Referenced by prepare_match().

The statistics for the collection.

Definition at line 42 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), make_synonym_postlist(), postlist_from_op_leaf_query(), and start_match().

The termfreqs and weights of terms used in orig_query, or NULL.

Definition at line 64 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), and postlist_from_op_leaf_query().

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

Definition at line 60 of file localsubmatch.h.

Referenced by get_postlist_and_term_info(), make_synonym_postlist(), and postlist_from_op_leaf_query().


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

Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.