#include <omenquireinternal.h>
Inheritance diagram for Xapian::Enquire::Internal:
Public Types | |
enum | sort_setting { REL, VAL, VAL_REL, REL_VAL } |
Public Member Functions | |
Internal (const Xapian::Database &databases, ErrorHandler *errorhandler_) | |
~Internal () | |
void | request_doc (const Xapian::Internal::MSetItem &item) const |
Request a document from the database. | |
Xapian::Document | read_doc (const Xapian::Internal::MSetItem &item) const |
Read a previously requested document from the database. | |
void | set_query (const Query &query_, termcount qlen_) |
const Query & | get_query () |
MSet | get_mset (Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const RSet *omrset, const MatchDecider *mdecider, const MatchDecider *matchspy) const |
ESet | get_eset (Xapian::termcount maxitems, const RSet &omrset, int flags, double k, const ExpandDecider *edecider) const |
TermIterator | get_matching_terms (Xapian::docid did) const |
TermIterator | get_matching_terms (const Xapian::MSetIterator &it) const |
void | register_match_decider (const string &name, const MatchDecider *mdecider) |
string | get_description () const |
Public Attributes | |
Xapian::valueno | collapse_key |
Xapian::Enquire::docid_order | order |
percent | percent_cutoff |
Xapian::weight | weight_cutoff |
Xapian::valueno | sort_key |
sort_setting | sort_by |
bool | sort_value_forward |
Sorter * | sorter |
ErrorHandler * | errorhandler |
The error handler, if set. | |
Weight * | weight |
Private Member Functions | |
Internal (const Internal &) | |
Copy not allowed. | |
void | operator= (const Internal &) |
Assignment not allowed. | |
Private Attributes | |
const Xapian::Database | db |
The database which this enquire object uses. | |
Query | query |
The user's query. | |
termcount | qlen |
The query length. |
This allows the implementation of Xapian::Enquire to be hidden and reference counted.
Definition at line 137 of file omenquireinternal.h.
Xapian::Enquire::Internal::Internal | ( | const Internal & | ) | [private] |
Copy not allowed.
Xapian::Enquire::Internal::Internal | ( | const Xapian::Database & | databases, | |
ErrorHandler * | errorhandler_ | |||
) |
Xapian::Enquire::Internal::~Internal | ( | ) |
void Xapian::Enquire::Internal::operator= | ( | const Internal & | ) | [private] |
Assignment not allowed.
void Xapian::Enquire::Internal::request_doc | ( | const Xapian::Internal::MSetItem & | item | ) | const |
Request a document from the database.
Definition at line 790 of file omenquire.cc.
References db, Xapian::Internal::MSetItem::did, errorhandler, and Xapian::Database::internal.
Document Xapian::Enquire::Internal::read_doc | ( | const Xapian::Internal::MSetItem & | item | ) | const |
Read a previously requested document from the database.
Definition at line 806 of file omenquire.cc.
References db, Xapian::Internal::MSetItem::did, errorhandler, and Xapian::Database::internal.
Definition at line 627 of file omenquire.cc.
References Xapian::Query::get_length(), qlen, and query.
const Query & Xapian::Enquire::Internal::get_query | ( | ) |
MSet Xapian::Enquire::Internal::get_mset | ( | Xapian::doccount | first, | |
Xapian::doccount | maxitems, | |||
Xapian::doccount | check_at_least, | |||
const RSet * | omrset, | |||
const MatchDecider * | mdecider, | |||
const MatchDecider * | matchspy | |||
) | const |
Definition at line 640 of file omenquire.cc.
References Assert, collapse_key, db, DEBUGCALL, errorhandler, Xapian::Internal::RefCntPtr< T >::get(), Xapian::Query::internal, Xapian::Weight::name(), order, percent_cutoff, qlen, query, sort_by, sort_key, sort_value_forward, sorter, weight, and weight_cutoff.
ESet Xapian::Enquire::Internal::get_eset | ( | Xapian::termcount | maxitems, | |
const RSet & | omrset, | |||
int | flags, | |||
double | k, | |||
const ExpandDecider * | edecider | |||
) | const |
Definition at line 675 of file omenquire.cc.
References db, DEBUGLINE, Xapian::Query::empty(), OmExpand::expand(), AutoPtr< _Tp >::get(), Xapian::Query::get_terms_begin(), Xapian::Query::get_terms_end(), Xapian::Enquire::INCLUDE_QUERY_TERMS, query, Xapian::RSet::size(), and Xapian::Enquire::USE_EXACT_TERMFREQ.
TermIterator Xapian::Enquire::Internal::get_matching_terms | ( | Xapian::docid | did | ) | const |
Definition at line 732 of file omenquire.cc.
References db, Xapian::Query::empty(), Xapian::Query::get_terms_begin(), Xapian::Query::get_terms_end(), query, Xapian::Database::termlist_begin(), and Xapian::Database::termlist_end().
Referenced by get_matching_terms().
TermIterator Xapian::Enquire::Internal::get_matching_terms | ( | const Xapian::MSetIterator & | it | ) | const |
void Xapian::Enquire::Internal::register_match_decider | ( | const string & | name, | |
const MatchDecider * | mdecider | |||
) |
Definition at line 824 of file omenquire.cc.
string Xapian::Enquire::Internal::get_description | ( | ) | const |
Definition at line 779 of file omenquire.cc.
References db, Xapian::Query::get_description(), Xapian::Database::get_description(), and query.
const Xapian::Database Xapian::Enquire::Internal::db [private] |
The database which this enquire object uses.
Definition at line 140 of file omenquireinternal.h.
Referenced by get_description(), get_eset(), get_matching_terms(), get_mset(), Internal(), read_doc(), and request_doc().
Query Xapian::Enquire::Internal::query [private] |
The user's query.
Definition at line 143 of file omenquireinternal.h.
Referenced by get_description(), get_eset(), get_matching_terms(), get_mset(), get_query(), and set_query().
termcount Xapian::Enquire::Internal::qlen [private] |
The query length.
Definition at line 146 of file omenquireinternal.h.
Referenced by get_mset(), and set_query().
The error handler, if set.
(0 if not set).
Definition at line 172 of file omenquireinternal.h.
Referenced by get_mset(), read_doc(), and request_doc().
Weight* Xapian::Enquire::Internal::weight [mutable] |