|
xapian-core
1.4.30
|
Abstract base class for iterating all terms in a database. More...
#include <alltermslist.h>
Inheritance diagram for AllTermsList:
Collaboration diagram for AllTermsList:Public Member Functions | |
| virtual Xapian::termcount | get_approx_size () const |
| Return approximate size of this termlist. More... | |
| virtual std::string | get_termname () const =0 |
| Return the termname at the current position. More... | |
| virtual Xapian::termcount | get_wdf () const |
| Return the wdf for the term at the current position. More... | |
| virtual Xapian::doccount | get_termfreq () const =0 |
| Return the term frequency for the term at the current position. More... | |
| virtual TermList * | next ()=0 |
| Advance the current position to the next term in the termlist. More... | |
| virtual TermList * | skip_to (const std::string &term)=0 |
| Skip forward to the specified term. More... | |
| virtual bool | at_end () const =0 |
| Return true if the current position is past the last term in this list. More... | |
| virtual Xapian::termcount | positionlist_count () const |
| Return true if the current position is past the last term in this list. More... | |
| virtual Xapian::PositionIterator | 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... | |
| virtual const std::vector< Xapian::termpos > * | get_vector_termpos () const |
| Get pointer to vector<termpos> if that's the internal representation. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references. More... | |
Protected Member Functions | |
| 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... | |
Private Member Functions | |
| void | operator= (const AllTermsList &) |
| Don't allow assignment. More... | |
| AllTermsList (const AllTermsList &) | |
| Don't allow copying. 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... | |
Abstract base class for iterating all terms in a database.
Definition at line 27 of file alltermslist.h.
|
private |
Don't allow copying.
|
inlineprotected |
Only constructable as a base class for derived classes.
Definition at line 36 of file alltermslist.h.
|
pure virtual |
Return true if the current position is past the last term in this list.
Implements Xapian::TermIterator::Internal.
Implemented in MultiAllTermsList, InMemoryAllTermsList, GlassSynonymTermList, GlassSpellingWordsList, GlassMetadataTermList, GlassAllTermsList, ChertSynonymTermList, ChertSpellingWordsList, ChertMetadataTermList, and ChertAllTermsList.
|
virtual |
Return approximate size of this termlist.
Implements Xapian::TermIterator::Internal.
Definition at line 32 of file alltermslist.cc.
References Assert.
|
pure virtual |
Return the term frequency for the term at the current position.
Implements Xapian::TermIterator::Internal.
Implemented in MultiAllTermsList, InMemoryAllTermsList, GlassSynonymTermList, GlassSpellingWordsList, GlassMetadataTermList, GlassAllTermsList, ChertSynonymTermList, ChertSpellingWordsList, ChertMetadataTermList, and ChertAllTermsList.
|
pure virtual |
Return the termname at the current position.
Implements Xapian::TermIterator::Internal.
Implemented in MultiAllTermsList, InMemoryAllTermsList, GlassSynonymTermList, GlassSpellingWordsList, GlassMetadataTermList, GlassAllTermsList, ChertSynonymTermList, ChertSpellingWordsList, ChertMetadataTermList, and ChertAllTermsList.
|
virtual |
Return the wdf for the term at the current position.
This isn't meaningful for an AllTermsList, and will throw Xapian::InvalidOperationError if called.
Implements Xapian::TermIterator::Internal.
Definition at line 40 of file alltermslist.cc.
|
pure virtual |
Advance the current position to the next term in the termlist.
Implements Xapian::TermIterator::Internal.
Implemented in MultiAllTermsList, InMemoryAllTermsList, GlassSynonymTermList, GlassSpellingWordsList, GlassMetadataTermList, GlassAllTermsList, ChertSynonymTermList, ChertSpellingWordsList, ChertMetadataTermList, and ChertAllTermsList.
|
private |
Don't allow assignment.
|
virtual |
Return a PositionIterator for the current position.
This isn't meaningful for an AllTermsList, and will throw Xapian::InvalidOperationError if called.
Implements Xapian::TermIterator::Internal.
Definition at line 52 of file alltermslist.cc.
|
virtual |
Return true if the current position is past the last term in this list.
This isn't meaningful for an AllTermsList, and will throw Xapian::InvalidOperationError if called.
Implements Xapian::TermIterator::Internal.
Definition at line 46 of file alltermslist.cc.
|
pure virtual |
Skip forward to the specified term.
If the specified term isn't in the list, position ourselves on the first term after term (or at_end() if no terms after term exist).
Implements Xapian::TermIterator::Internal.
Implemented in InMemoryAllTermsList, GlassSynonymTermList, ChertSynonymTermList, GlassSpellingWordsList, GlassAllTermsList, ChertSpellingWordsList, ChertAllTermsList, MultiAllTermsList, GlassMetadataTermList, and ChertMetadataTermList.