|
xapian-core
2.0.0
|
A class for construction of termlists which store the terms for a document along with the number of documents it indexes i.e. More...
#include <cluster.h>
Inheritance diagram for Xapian::TermListGroup:
Collaboration diagram for Xapian::TermListGroup:Public Member Functions | |
| TermListGroup (const MSet &docs, const Stopper *stopper=NULL) | |
| Constructor. More... | |
| doccount | get_termfreq (const std::string &tname) const override |
| Return the number of documents that the term 'tname' exists in. More... | |
| doccount | get_doccount () const override |
| Return the number of documents within the MSet. More... | |
Public Member Functions inherited from Xapian::FreqSource | |
| FreqSource () | |
| Default constructor. More... | |
| virtual | ~FreqSource () |
| Destructor. More... | |
| FreqSource * | release () |
| Start reference counting this object. More... | |
| const FreqSource * | release () const |
| Start reference counting this object. More... | |
Public Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
| opt_intrusive_base (const opt_intrusive_base &) | |
| opt_intrusive_base & | operator= (const opt_intrusive_base &) |
| opt_intrusive_base () | |
| Construct object which is initially not reference counted. More... | |
| virtual | ~opt_intrusive_base () |
| void | ref () const |
| void | unref () const |
Private Member Functions | |
| void | add_document (const Document &document, const Stopper *stopper=NULL) |
| Add a single document and calculates its corresponding term frequencies. More... | |
Private Attributes | |
| std::unordered_map< std::string, doccount > | termfreq |
| Map of the terms and its corresponding term frequencies. More... | |
| doccount | num_of_documents |
| Number of documents added to the termlist. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::opt_intrusive_base | |
| unsigned | _refs |
| Reference count. More... | |
Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
| void | release () const |
| Start reference counting. More... | |
A class for construction of termlists which store the terms for a document along with the number of documents it indexes i.e.
term frequency
Constructor.
| docs | MSet object used to construct the TermListGroup |
| stopper | Xapian::Stopper object to identify stopwords |
|
private |
Add a single document and calculates its corresponding term frequencies.
| document | Adds a document and updates the TermListGroup based on the terms found in the document |
| stopper | Xapian::Stopper object to identify stopwords |
|
overridevirtual |
Return the number of documents within the MSet.
Implements Xapian::FreqSource.
|
overridevirtual |
Return the number of documents that the term 'tname' exists in.
| tname | The term for which to return the term frequency |
Implements Xapian::FreqSource.
|
private |
|
private |