xapian-core  2.0.0
Public Member Functions | Protected Attributes | List of all members
Xapian::Internal::Context Class Reference
+ Inheritance diagram for Xapian::Internal::Context:
+ Collaboration diagram for Xapian::Internal::Context:

Public Member Functions

 Context (QueryOptimiser *qopt_, size_t reserve)
 
 ~Context ()
 
Xapian::docid get_first () const
 
Xapian::docid get_last () const
 
void add_termfreqs (TermFreqs *termfreqs)
 
void add_postlist (PostList *pl, EstimateOp *estimate, TermFreqs *termfreqs)
 
void add_postlist (PostListAndEstimate p, TermFreqs *termfreqs)
 
bool empty () const
 
Xapian::termcount size () const
 
void shrink (size_t new_size)
 
void expand_wildcard (const QueryWildcard *query, double factor, TermFreqs *termfreqs)
 Expand a wildcard query. More...
 
void expand_edit_distance (const QueryEditDistance *query, double factor, TermFreqs *termfreqs)
 Expand an edit distance query. More...
 

Protected Attributes

QueryOptimiserqopt
 
vector< PostList * > pls
 
VecUniquePtr< EstimateOpestimates
 
vector< TermFreqstermfreqs_list
 
Xapian::docid first = Xapian::docid(-1)
 Lower bound on matching docid range. More...
 
Xapian::docid last = 0
 Upper bound on matching docid range. More...
 

Detailed Description

Definition at line 133 of file queryinternal.cc.

Constructor & Destructor Documentation

◆ Context()

Xapian::Internal::Context::Context ( QueryOptimiser qopt_,
size_t  reserve 
)
inline

◆ ~Context()

Xapian::Internal::Context::~Context ( )
inline

Definition at line 155 of file queryinternal.cc.

Member Function Documentation

◆ add_postlist() [1/2]

void Xapian::Internal::Context::add_postlist ( PostList pl,
EstimateOp estimate,
TermFreqs termfreqs 
)
inline

◆ add_postlist() [2/2]

void Xapian::Internal::Context::add_postlist ( PostListAndEstimate  p,
TermFreqs termfreqs 
)
inline

Definition at line 187 of file queryinternal.cc.

References p.

◆ add_termfreqs()

void Xapian::Internal::Context::add_termfreqs ( TermFreqs termfreqs)
inline

Definition at line 163 of file queryinternal.cc.

◆ empty()

bool Xapian::Internal::Context::empty ( ) const
inline

◆ expand_edit_distance()

void Xapian::Internal::Context::expand_edit_distance ( const QueryEditDistance query,
double  factor,
TermFreqs termfreqs 
)
inline

◆ expand_wildcard()

void Xapian::Internal::Context::expand_wildcard ( const QueryWildcard query,
double  factor,
TermFreqs termfreqs 
)
inline

◆ get_first()

Xapian::docid Xapian::Internal::Context::get_first ( ) const
inline

Definition at line 159 of file queryinternal.cc.

◆ get_last()

Xapian::docid Xapian::Internal::Context::get_last ( ) const
inline

Definition at line 161 of file queryinternal.cc.

◆ shrink()

void Xapian::Internal::Context::shrink ( size_t  new_size)
inline

◆ size()

Xapian::termcount Xapian::Internal::Context::size ( ) const
inline

Member Data Documentation

◆ estimates

VecUniquePtr<EstimateOp> Xapian::Internal::Context::estimates
protected

Definition at line 139 of file queryinternal.cc.

◆ first

Xapian::docid Xapian::Internal::Context::first = Xapian::docid(-1)
protected

Lower bound on matching docid range.

Definition at line 144 of file queryinternal.cc.

◆ last

Xapian::docid Xapian::Internal::Context::last = 0
protected

Upper bound on matching docid range.

Definition at line 147 of file queryinternal.cc.

◆ pls

vector<PostList*> Xapian::Internal::Context::pls
protected

Definition at line 137 of file queryinternal.cc.

◆ qopt

QueryOptimiser* Xapian::Internal::Context::qopt
protected

Definition at line 135 of file queryinternal.cc.

◆ termfreqs_list

vector<TermFreqs> Xapian::Internal::Context::termfreqs_list
protected

Definition at line 141 of file queryinternal.cc.


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