Xapian::Enquire::Internal Class Reference

Internals of enquire system. More...

#include <omenquireinternal.h>

Inheritance diagram for Xapian::Enquire::Internal:

Inheritance graph
[legend]
Collaboration diagram for Xapian::Enquire::Internal:

Collaboration graph
[legend]
List of all members.

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 Queryget_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
Sortersorter
ErrorHandlererrorhandler
 The error handler, if set.
Weightweight

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.

Detailed Description

Internals of enquire system.

This allows the implementation of Xapian::Enquire to be hidden and reference counted.

Definition at line 137 of file omenquireinternal.h.


Member Enumeration Documentation

enum Xapian::Enquire::Internal::sort_setting

Enumerator:
REL 
VAL 
VAL_REL 
REL_VAL 

Definition at line 154 of file omenquireinternal.h.


Constructor & Destructor Documentation

Xapian::Enquire::Internal::Internal ( const Internal  )  [private]

Copy not allowed.

Xapian::Enquire::Internal::Internal ( const Xapian::Database databases,
ErrorHandler errorhandler_ 
)

Definition at line 609 of file omenquire.cc.

References db, and Xapian::Database::internal.

Xapian::Enquire::Internal::~Internal (  ) 

Definition at line 620 of file omenquire.cc.

References weight.


Member Function Documentation

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.

void Xapian::Enquire::Internal::set_query ( const Query query_,
termcount  qlen_ 
)

Definition at line 627 of file omenquire.cc.

References Xapian::Query::get_length(), qlen, and query.

const Query & Xapian::Enquire::Internal::get_query (  ) 

Definition at line 634 of file omenquire.cc.

References 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

Definition at line 771 of file omenquire.cc.

References get_matching_terms().

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.


Member Data Documentation

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().

Xapian::valueno Xapian::Enquire::Internal::collapse_key

Definition at line 156 of file omenquireinternal.h.

Referenced by get_mset().

Xapian::Enquire::docid_order Xapian::Enquire::Internal::order

Definition at line 158 of file omenquireinternal.h.

Referenced by get_mset().

percent Xapian::Enquire::Internal::percent_cutoff

Definition at line 160 of file omenquireinternal.h.

Referenced by get_mset().

Xapian::weight Xapian::Enquire::Internal::weight_cutoff

Definition at line 162 of file omenquireinternal.h.

Referenced by get_mset().

Xapian::valueno Xapian::Enquire::Internal::sort_key

Definition at line 164 of file omenquireinternal.h.

Referenced by get_mset().

sort_setting Xapian::Enquire::Internal::sort_by

Definition at line 165 of file omenquireinternal.h.

Referenced by get_mset().

bool Xapian::Enquire::Internal::sort_value_forward

Definition at line 166 of file omenquireinternal.h.

Referenced by get_mset().

Sorter* Xapian::Enquire::Internal::sorter

Definition at line 168 of file omenquireinternal.h.

Referenced by get_mset().

ErrorHandler* Xapian::Enquire::Internal::errorhandler

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]

Definition at line 174 of file omenquireinternal.h.

Referenced by get_mset(), and ~Internal().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.