xapian-core  1.4.26
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChertSynonymTermList Class Reference

#include <chert_synonym.h>

+ Inheritance diagram for ChertSynonymTermList:
+ Collaboration diagram for ChertSynonymTermList:

Public Member Functions

 ChertSynonymTermList (Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database_, ChertCursor *cursor_, const string &prefix_)
 
 ~ChertSynonymTermList ()
 Destructor. More...
 
string get_termname () const
 Returns the current termname. More...
 
Xapian::doccount get_termfreq () const
 Return the term frequency for the term at the current position. More...
 
TermListnext ()
 Advance to the next term in the list. More...
 
TermListskip_to (const string &tname)
 Advance to the first term which is >= tname. More...
 
bool at_end () const
 True if we're off the end of the list. More...
 
- Public Member Functions inherited from AllTermsList
virtual Xapian::termcount get_approx_size () const
 Return approximate size of this termlist. More...
 
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 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...
 

Private Member Functions

 ChertSynonymTermList (const ChertSynonymTermList &)
 Copying is not allowed. More...
 
void operator= (const ChertSynonymTermList &)
 Assignment is not allowed. More...
 

Private Attributes

Xapian::Internal::intrusive_ptr< const Xapian::Database::Internaldatabase
 Keep a reference to our database to stop it being deleted. More...
 
ChertCursorcursor
 A cursor which runs through the synonym table reading termnames from the keys. More...
 
string prefix
 The prefix to restrict the terms to. 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...
 

Detailed Description

Definition at line 113 of file chert_synonym.h.

Constructor & Destructor Documentation

◆ ChertSynonymTermList() [1/2]

ChertSynonymTermList::ChertSynonymTermList ( const ChertSynonymTermList )
private

Copying is not allowed.

◆ ChertSynonymTermList() [2/2]

ChertSynonymTermList::ChertSynonymTermList ( Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal database_,
ChertCursor cursor_,
const string &  prefix_ 
)
inline

◆ ~ChertSynonymTermList()

ChertSynonymTermList::~ChertSynonymTermList ( )

Destructor.

Definition at line 168 of file chert_synonym.cc.

References LOGCALL_DTOR.

Member Function Documentation

◆ at_end()

bool ChertSynonymTermList::at_end ( ) const
virtual

True if we're off the end of the list.

Implements AllTermsList.

Definition at line 223 of file chert_synonym.cc.

References LOGCALL, and RETURN.

◆ get_termfreq()

Xapian::doccount ChertSynonymTermList::get_termfreq ( ) const
virtual

Return the term frequency for the term at the current position.

Implements AllTermsList.

Definition at line 185 of file chert_synonym.cc.

◆ get_termname()

string ChertSynonymTermList::get_termname ( ) const
virtual

Returns the current termname.

Either next() or skip_to() must have been called before this method can be called.

Implements AllTermsList.

Definition at line 175 of file chert_synonym.cc.

References Assert, LOGCALL, and RETURN.

◆ next()

TermList * ChertSynonymTermList::next ( )
virtual

Advance to the next term in the list.

Implements AllTermsList.

Definition at line 191 of file chert_synonym.cc.

References Assert, LOGCALL, RETURN, and startswith().

◆ operator=()

void ChertSynonymTermList::operator= ( const ChertSynonymTermList )
private

Assignment is not allowed.

◆ skip_to()

TermList * ChertSynonymTermList::skip_to ( const string &  tname)
virtual

Advance to the first term which is >= tname.

Implements AllTermsList.

Definition at line 206 of file chert_synonym.cc.

References Assert, LOGCALL, RETURN, and startswith().

Member Data Documentation

◆ cursor

ChertCursor* ChertSynonymTermList::cursor
private

A cursor which runs through the synonym table reading termnames from the keys.

Definition at line 126 of file chert_synonym.h.

◆ database

Xapian::Internal::intrusive_ptr<const Xapian::Database::Internal> ChertSynonymTermList::database
private

Keep a reference to our database to stop it being deleted.

Definition at line 121 of file chert_synonym.h.

◆ prefix

string ChertSynonymTermList::prefix
private

The prefix to restrict the terms to.

Definition at line 129 of file chert_synonym.h.


The documentation for this class was generated from the following files: