xapian-core
1.4.27
|
#include <queryinternal.h>
Public Member Functions | |
QueryWildcard (const std::string &pattern_, Xapian::termcount max_expansion_, int max_type_, Query::op combiner_) | |
Xapian::Query::op | get_type () const |
const std::string & | get_pattern () const |
PostingIterator::Internal * | postlist (QueryOptimiser *qopt, double factor) const |
termcount | get_length () const |
void | serialise (std::string &result) const |
QueryWildcard * | change_combiner (Xapian::Query::op new_op) |
Change the combining operator. More... | |
std::string | get_description () const |
Public Member Functions inherited from Xapian::Query::Internal | |
Internal () | |
virtual | ~Internal () |
virtual void | postlist_sub_and_like (Xapian::Internal::AndContext &ctx, QueryOptimiser *qopt, double factor) const |
virtual void | postlist_sub_or_like (Xapian::Internal::OrContext &ctx, QueryOptimiser *qopt, double factor) const |
virtual void | postlist_sub_xor (Xapian::Internal::XorContext &ctx, QueryOptimiser *qopt, double factor) const |
virtual size_t | get_num_subqueries () const |
virtual const Query | get_subquery (size_t n) const |
virtual void | gather_terms (void *void_terms) const |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
intrusive_base () | |
Construct with no references. More... | |
Private Member Functions | |
Xapian::Query::op | get_op () const |
Private Attributes | |
std::string | pattern |
Xapian::termcount | max_expansion |
int | max_type |
Query::op | combiner |
Additional Inherited Members | |
Static Public Member Functions inherited from Xapian::Query::Internal | |
static Query::Internal * | unserialise (const char **p, const char *end, const Registry ®) |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Definition at line 406 of file queryinternal.h.
|
inline |
Definition at line 418 of file queryinternal.h.
References Xapian::Internal::QueryTerm::get_type(), XAPIAN_NOEXCEPT, and XAPIAN_PURE_FUNCTION.
|
inline |
Change the combining operator.
If there's only one reference to this object we change in-place and return a pointer to the existing object; otherwise we create and return a new QueryWildcard object.
Definition at line 444 of file queryinternal.h.
References Xapian::Internal::intrusive_base::_refs, and Xapian::Internal::QueryTerm::get_description().
Referenced by Xapian::Internal::QuerySynonym::done().
|
virtual |
Implements Xapian::Query::Internal.
Definition at line 1125 of file queryinternal.cc.
References description_append(), Xapian::Query::OP_MAX, Xapian::Query::OP_OR, and Xapian::Query::OP_SYNONYM.
|
virtual |
Reimplemented from Xapian::Query::Internal.
Definition at line 1098 of file queryinternal.cc.
|
private |
Definition at line 1943 of file queryinternal.cc.
References Xapian::Query::OP_WILDCARD.
|
inline |
Definition at line 430 of file queryinternal.h.
References Xapian::Internal::QueryTerm::get_length(), Xapian::Internal::QueryTerm::postlist(), Xapian::Internal::QueryTerm::serialise(), XAPIAN_NOEXCEPT, and XAPIAN_PURE_FUNCTION.
Referenced by Xapian::check_query().
|
virtual |
Implements Xapian::Query::Internal.
Definition at line 1119 of file queryinternal.cc.
References Xapian::Query::OP_WILDCARD.
|
virtual |
Implements Xapian::Query::Internal.
Definition at line 1013 of file queryinternal.cc.
References Xapian::Internal::Context::add_postlist(), QueryOptimiser::db, Xapian::Internal::Context::empty(), QueryOptimiser::get_total_subqs(), QueryOptimiser::in_synonym, QueryOptimiser::inc_total_subqs(), LOGCALL, QueryOptimiser::make_synonym_postlist(), Xapian::Query::OP_MAX, Xapian::Query::OP_OR, Xapian::Query::OP_SYNONYM, Xapian::Database::Internal::open_allterms(), QueryOptimiser::open_lazy_post_list(), Xapian::Internal::OrContext::postlist(), Xapian::Internal::OrContext::postlist_max(), RETURN, Xapian::Internal::OrContext::select_most_frequent(), QueryOptimiser::set_total_subqs(), Xapian::Internal::Context::size(), Xapian::Internal::str(), Xapian::Query::WILDCARD_LIMIT_FIRST, and Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT.
|
virtual |
Implements Xapian::Query::Internal.
Definition at line 1108 of file queryinternal.cc.
References encode_length().
|
private |
Definition at line 413 of file queryinternal.h.
|
private |
Definition at line 409 of file queryinternal.h.
|
private |
Definition at line 411 of file queryinternal.h.
|
private |
Definition at line 407 of file queryinternal.h.