|
xapian-core
2.0.0
|
class for alltermslists over several databases More...
#include <inmemory_alltermslist.h>
Inheritance diagram for InMemoryAllTermsList:
Collaboration diagram for InMemoryAllTermsList:Public Member Functions | |
| InMemoryAllTermsList (const std::map< std::string, InMemoryTerm, std::less<>> *tmap_, Xapian::Internal::intrusive_ptr< const InMemoryDatabase > database_, std::string_view prefix_) | |
| Constructor. More... | |
| 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 * | skip_to (std::string_view tname) |
| Skip forward to the specified term. More... | |
| TermList * | next () |
| next() causes the AllTermsList to move to the next term in the list. 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 | |
| InMemoryAllTermsList (const InMemoryAllTermsList &) | |
| Copying is not allowed. More... | |
| void | operator= (const InMemoryAllTermsList &) |
| Assignment is not allowed. More... | |
Private Attributes | |
| const std::map< std::string, InMemoryTerm, std::less<> > * | tmap |
| std::map< std::string, InMemoryTerm, std::less<> >::const_iterator | it |
| Xapian::Internal::intrusive_ptr< const InMemoryDatabase > | database |
| std::string | prefix |
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... | |
class for alltermslists over several databases
Definition at line 29 of file inmemory_alltermslist.h.
|
private |
Copying is not allowed.
|
inline |
Constructor.
Definition at line 50 of file inmemory_alltermslist.h.
|
virtual |
Return approximate size of this termlist.
Implements AllTermsList.
Definition at line 30 of file inmemory_alltermslist.cc.
|
virtual |
Return the term frequency for the term at the current position.
Implements AllTermsList.
Definition at line 39 of file inmemory_alltermslist.cc.
References Assert, and InMemoryDatabase::throw_database_closed().
|
virtual |
next() causes the AllTermsList to move to the next term in the list.
Implements AllTermsList.
Definition at line 80 of file inmemory_alltermslist.cc.
References Assert, startswith(), and InMemoryDatabase::throw_database_closed().
|
private |
Assignment is not allowed.
|
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 AllTermsList.
Definition at line 49 of file inmemory_alltermslist.cc.
References Assert, startswith(), and InMemoryDatabase::throw_database_closed().
|
private |
Definition at line 44 of file inmemory_alltermslist.h.
|
private |
Definition at line 42 of file inmemory_alltermslist.h.
|
private |
Definition at line 46 of file inmemory_alltermslist.h.
|
private |
Definition at line 40 of file inmemory_alltermslist.h.