35 virtual int32_t
doc() = 0;
39 virtual int32_t
freq() = 0;
51 virtual bool skipTo(int32_t target) = 0;
#define LUCENE_INTERFACE(Name)
Definition LuceneObject.h:19
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
TermDocs provides an interface for enumerating <document, frequency>; pairs for a term....
Definition TermDocs.h:19
virtual bool skipTo(int32_t target)=0
Skips entries to the first beyond the current whose document number is greater than or equal to targe...
virtual int32_t doc()=0
Returns the current document number. This is invalid until next() is called for the first time.
virtual bool next()=0
Moves to the next pair in the enumeration. Returns true if there is such a next pair in the enumerati...
virtual int32_t read(Collection< int32_t > &docs, Collection< int32_t > &freqs)=0
Attempts to read multiple entries from the enumeration, up to length of docs. Document numbers are st...
virtual void seek(const TermEnumPtr &termEnum)=0
Sets this to the data for the current term in a TermEnum. This may be optimized in some implementatio...
virtual void seek(const TermPtr &term)=0
Sets this to the data for a term. The enumeration is reset to the start of the data for this term.
virtual int32_t freq()=0
Returns the frequency of the term within the current document. This is invalid until next() is called...
virtual void close()=0
Frees associated resources.
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::shared_ptr< TermEnum > TermEnumPtr
Definition LuceneTypes.h:235