|
xapian-core
2.0.0
|
#include <honey_metadata.h>
Inheritance diagram for HoneyMetadataTermList:
Collaboration diagram for HoneyMetadataTermList:Public Member Functions | |
| HoneyMetadataTermList (const Xapian::Database::Internal *database_, HoneyCursor *cursor_, std::string_view prefix_) | |
| ~HoneyMetadataTermList () | |
| Xapian::termcount | get_approx_size () const |
| Return approximate size of this termlist. More... | |
| Xapian::doccount | get_termfreq () const |
| Return the term frequency for the term at the current position. More... | |
| TermList * | next () |
| Advance to the next term in the list. More... | |
| TermList * | skip_to (std::string_view key) |
| Advance to the first key which is >= key. More... | |
Public Member Functions inherited from AllTermsList | |
| virtual Xapian::termcount | get_wdf () const |
| Return the wdf for the term at the current position. More... | |
| virtual Xapian::termcount | positionlist_count () const |
| Return true if the current position is past the last term in this list. More... | |
| virtual PositionList * | positionlist_begin () const |
| Return a PositionIterator 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 | |
| HoneyMetadataTermList (const HoneyMetadataTermList &) | |
| Copying is not allowed. More... | |
| void | operator= (const HoneyMetadataTermList &) |
| Assignment is not allowed. More... | |
Private Attributes | |
| Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > | database |
| Keep a reference to our database to stop it being deleted. More... | |
| HoneyCursor * | cursor |
| A cursor which runs through the postlist table reading metadata keys. More... | |
| std::string | prefix |
| The prefix that all returned keys must have. 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 AllTermsList | |
| AllTermsList () | |
| Only constructable as a base class for derived classes. 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... | |
Definition at line 38 of file honey_metadata.h.
|
private |
Copying is not allowed.
| HoneyMetadataTermList::HoneyMetadataTermList | ( | const Xapian::Database::Internal * | database_, |
| HoneyCursor * | cursor_, | ||
| std::string_view | prefix_ | ||
| ) |
Definition at line 42 of file honey_metadata.cc.
References Assert, cursor, LOGCALL_CTOR, and HoneyCursor::to_end().
| HoneyMetadataTermList::~HoneyMetadataTermList | ( | ) |
Definition at line 54 of file honey_metadata.cc.
References cursor, and LOGCALL_DTOR.
|
virtual |
Return approximate size of this termlist.
Implements AllTermsList.
Definition at line 61 of file honey_metadata.cc.
|
virtual |
Return the term frequency for the term at the current position.
Not meaningful for a HoneyMetadataTermList.
Implements AllTermsList.
Definition at line 69 of file honey_metadata.cc.
|
virtual |
Advance to the next term in the list.
Implements AllTermsList.
Definition at line 76 of file honey_metadata.cc.
References HoneyCursor::after_end(), Assert, HoneyCursor::current_key, Xapian::TermIterator::Internal::current_term, cursor, HoneyCursor::find_entry_ge(), LOGCALL, HoneyCursor::next(), prefix, RETURN, and startswith().
|
private |
Assignment is not allowed.
|
virtual |
Advance to the first key which is >= key.
Implements AllTermsList.
Definition at line 98 of file honey_metadata.cc.
References HoneyCursor::after_end(), Assert, HoneyCursor::current_key, Xapian::TermIterator::Internal::current_term, cursor, HoneyCursor::find_entry_ge(), LOGCALL, prefix, RETURN, and startswith().
|
private |
A cursor which runs through the postlist table reading metadata keys.
Definition at line 50 of file honey_metadata.h.
Referenced by HoneyMetadataTermList(), next(), skip_to(), and ~HoneyMetadataTermList().
|
private |
Keep a reference to our database to stop it being deleted.
Definition at line 46 of file honey_metadata.h.
|
private |
The prefix that all returned keys must have.
Definition at line 54 of file honey_metadata.h.