|
xapian-core
2.0.0
|
The list of words containing a particular trigram. More...
#include <honey_spelling.h>
Inheritance diagram for HoneySpellingTermList:
Collaboration diagram for HoneySpellingTermList:Public Member Functions | |
| HoneySpellingTermList (const std::string &data_) | |
| Constructor. More... | |
| HoneySpellingTermList (const std::string &data_, const char *key) | |
| Constructor for head/bookend/tail terms. More... | |
| Xapian::termcount | get_approx_size () const |
| Return approximate size of this termlist. More... | |
| Xapian::termcount | get_wdf () const |
| Return the wdf for the term at the current position. More... | |
| Xapian::doccount | get_termfreq () const |
| Return the term frequency for the term at the current position. More... | |
| TermList * | next () |
| Advance the current position to the next term in the termlist. More... | |
| TermList * | skip_to (std::string_view term) |
| Skip forward to the specified term. More... | |
| Xapian::termcount | positionlist_count () const |
| Return the length of the position list for the current position. More... | |
| PositionList * | positionlist_begin () const |
| Return PositionList for the current position. More... | |
Public Member Functions inherited from Xapian::TermIterator::Internal | |
| virtual | ~Internal () |
| We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More... | |
| virtual void | accumulate_stats (Xapian::Internal::ExpandStats &stats) const |
| Collate weighting information for the current term. More... | |
| const std::string & | get_termname () const |
| Return the termname at the current position. More... | |
| virtual const Xapian::VecCOW< Xapian::termpos > * | get_vec_termpos () const |
| Get pointer to VecCOW<termpos> if that's the internal representation. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references. More... | |
Private Member Functions | |
| HoneySpellingTermList (const HoneySpellingTermList &) | |
| Copying is not allowed. More... | |
| void | operator= (const HoneySpellingTermList &) |
| Assignment is not allowed. More... | |
Private Attributes | |
| std::string | data |
| The encoded data. More... | |
| unsigned | p = 0 |
| Position in the data. More... | |
| int | tail = 0 |
| Number of constant characters on the end of the value. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::TermIterator::Internal | |
| size_t | shard_index = 0 |
| Which shard of a multidatabase this is from. More... | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs |
| Reference count. More... | |
Protected Member Functions inherited from Xapian::TermIterator::Internal | |
| Internal () | |
| Only constructable as a base class for derived classes. More... | |
Protected Attributes inherited from Xapian::TermIterator::Internal | |
| std::string | current_term |
| The current term. More... | |
The list of words containing a particular trigram.
Definition at line 159 of file honey_spelling.h.
|
private |
Copying is not allowed.
|
inlineexplicit |
Constructor.
Definition at line 182 of file honey_spelling.h.
|
inline |
Constructor for head/bookend/tail terms.
Definition at line 186 of file honey_spelling.h.
References AssertRel, Xapian::TermIterator::Internal::current_term, Honey::KEY_PREFIX_BOOKEND, Honey::KEY_PREFIX_HEAD, Honey::KEY_PREFIX_TAIL, Honey::KEY_PREFIX_WORD, and tail.
|
virtual |
Return approximate size of this termlist.
Implements Xapian::TermIterator::Internal.
Definition at line 380 of file honey_spelling.cc.
|
virtual |
Return the term frequency for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 394 of file honey_spelling.cc.
|
virtual |
Return the wdf for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 388 of file honey_spelling.cc.
|
virtual |
Advance the current position to the next term in the termlist.
The list starts before the first term in the list, so next(), skip_to() or check() must be called before any methods which need the context of the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 400 of file honey_spelling.cc.
References MAGIC_XOR_VALUE, p, rare, and usual.
Referenced by skip_to().
|
private |
Assignment is not allowed.
|
virtual |
Return PositionList for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 454 of file honey_spelling.cc.
|
virtual |
Return the length of the position list for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 445 of file honey_spelling.cc.
|
virtual |
Skip forward to the specified term.
If the specified term isn't in the list, position ourselves on the first term after term.
Implements Xapian::TermIterator::Internal.
Definition at line 435 of file honey_spelling.cc.
|
private |
The encoded data.
Definition at line 161 of file honey_spelling.h.
|
private |
Position in the data.
Definition at line 164 of file honey_spelling.h.
|
private |
Number of constant characters on the end of the value.
Valid values once iterating are 0, 1, 2. Before iteration, can be 0 (no head or tail), 2 (two tails), -1 (one head, one tail -> 1 once iterating) or -2 (two heads, no tail -> 0 once iterating).
Definition at line 172 of file honey_spelling.h.
Referenced by HoneySpellingTermList().