10 #ifndef _STRUS_DOCUMENT_TERM_OCCURRENCE_ITERATOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_DOCUMENT_TERM_OCCURRENCE_ITERATOR_INTERFACE_HPP_INCLUDED
58 virtual bool nextTerm( Term& value)=0;
void init(Index tf_, Index firstpos_, Index termno_)
Initialization.
Definition: documentTermIteratorInterface.hpp:43
Index firstpos
first occurrence term position in the document
Definition: documentTermIteratorInterface.hpp:27
int32_t Index
Number type generally used for locally counted indices.
Definition: index.hpp:29
Index tf
term frequency in the document
Definition: documentTermIteratorInterface.hpp:26
Term()
Default contructor.
Definition: documentTermIteratorInterface.hpp:31
Numeric types used for local and global indices.
virtual ~DocumentTermIteratorInterface()
Destructor.
Definition: documentTermIteratorInterface.hpp:47
Term(const Term &o)
Copy contructor.
Definition: documentTermIteratorInterface.hpp:40
virtual bool nextTerm(Term &value)=0
Get the next term.
Term(Index tf_, Index firstpos_, Index termno_)
Contructor.
Definition: documentTermIteratorInterface.hpp:37
virtual unsigned int termDocumentFrequency(const Index &termno) const =0
Get the local document frequency of a term.
Definition: documentTermIteratorInterface.hpp:24
virtual Index skipDoc(const Index &docno)=0
Skip to the next document.
Index termno
internal term number (only valid in local server context, use the method DocumentTermIteratorInterfac...
Definition: documentTermIteratorInterface.hpp:28
Structure that allows to iterate on document term occurrencies.
Definition: documentTermIteratorInterface.hpp:21
virtual std::string termValue(const Index &termno) const =0
Get string representation of a term.