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_legacy) const
ESet get_eset (Xapian::termcount maxitems, const RSet &omrset, int flags, double k, const ExpandDecider *edecider, Xapian::weight min_wt) const
TermIterator get_matching_terms (Xapian::docid did) const
TermIterator get_matching_terms (const Xapian::MSetIterator &it) const
Xapian::doccount get_termfreq (const string &tname) const
string get_description () const

Public Attributes

Xapian::valueno collapse_key
Xapian::doccount collapse_max
Xapian::Enquire::docid_order order
percent percent_cutoff
Xapian::weight weight_cutoff
Xapian::valueno sort_key
sort_setting sort_by
bool sort_value_forward
KeyMakersorter
ErrorHandlererrorhandler
 The error handler, if set.
Weightweight
 The weight to use for this query.
vector< MatchSpy * > spies

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 116 of file omenquireinternal.h.


Member Enumeration Documentation

Enumerator:
REL 
VAL 
VAL_REL 
REL_VAL 

Definition at line 133 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

string Xapian::Enquire::Internal::get_description (  )  const

ESet Xapian::Enquire::Internal::get_eset ( Xapian::termcount  maxitems,
const RSet omrset,
int  flags,
double  k,
const ExpandDecider edecider,
Xapian::weight  min_wt 
) const

TermIterator Xapian::Enquire::Internal::get_matching_terms ( const Xapian::MSetIterator it  )  const

Definition at line 793 of file omenquire.cc.

References get_matching_terms().

TermIterator Xapian::Enquire::Internal::get_matching_terms ( Xapian::docid  did  )  const

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_legacy 
) const

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

Definition at line 634 of file omenquire.cc.

References query.

Xapian::doccount Xapian::Enquire::Internal::get_termfreq ( const string &  tname  )  const

Definition at line 801 of file omenquire.cc.

References db, and Xapian::Database::get_termfreq().

void Xapian::Enquire::Internal::operator= ( const Internal  )  [private]

Assignment not allowed.

Document Xapian::Enquire::Internal::read_doc ( const Xapian::Internal::MSetItem item  )  const

Read a previously requested document from the database.

Definition at line 834 of file omenquire.cc.

References db, Xapian::Internal::MSetItem::did, errorhandler, and Xapian::Database::internal.

void Xapian::Enquire::Internal::request_doc ( const Xapian::Internal::MSetItem item  )  const

Request a document from the database.

Definition at line 818 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.


Member Data Documentation

Definition at line 135 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 137 of file omenquireinternal.h.

Referenced by get_mset().

The database which this enquire object uses.

Definition at line 119 of file omenquireinternal.h.

Referenced by get_description(), get_eset(), get_matching_terms(), get_mset(), get_termfreq(), Internal(), read_doc(), and request_doc().

The error handler, if set.

(0 if not set).

Definition at line 153 of file omenquireinternal.h.

Referenced by get_mset(), read_doc(), and request_doc().

Definition at line 139 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 141 of file omenquireinternal.h.

Referenced by get_mset().

The query length.

Definition at line 125 of file omenquireinternal.h.

Referenced by get_mset(), and set_query().

The user's query.

Definition at line 122 of file omenquireinternal.h.

Referenced by get_description(), get_eset(), get_matching_terms(), get_mset(), get_query(), and set_query().

Definition at line 146 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 145 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 147 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 149 of file omenquireinternal.h.

Referenced by get_mset().

Definition at line 162 of file omenquireinternal.h.

Referenced by get_mset().

The weight to use for this query.

This is mutable so that the default BM25Weight object can be created lazily when first required.

Definition at line 160 of file omenquireinternal.h.

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

Definition at line 143 of file omenquireinternal.h.

Referenced by get_mset().


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

Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.