Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef SCORERDOCQUEUE_H
8 #define SCORERDOCQUEUE_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
bool topNextAndAdjustElsePop()
bool checkAdjustElsePop(bool cond)
ScorerPtr pop()
Removes and returns the least scorer of the ScorerDocQueue in log(size) time. Should not be used when...
void adjustTop()
Should be called when the scorer at top changes doc() value.
Collection< HeapedScorerDocPtr > heap
Definition: ScorerDocQueue.h:21
bool topSkipToAndAdjustElsePop(int32_t target)
int32_t _size
Definition: ScorerDocQueue.h:26
void popNoResult()
Removes the least scorer of the ScorerDocQueue in log(size) time. Should not be used when the queue i...
HeapedScorerDocPtr topHSD
Definition: ScorerDocQueue.h:27
int32_t maxSize
Definition: ScorerDocQueue.h:25
bool insert(const ScorerPtr &scorer)
Adds a Scorer to the ScorerDocQueue in log(size) time if either the ScorerDocQueue is not full,...
void put(const ScorerPtr &scorer)
Adds a Scorer to a ScorerDocQueue in log(size) time. If one tries to add more Scorers than maxSize Ar...
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< HeapedScorerDoc > HeapedScorerDocPtr
Definition: LuceneTypes.h:531
Base class for all Lucene classes.
Definition: LuceneObject.h:31
ScorerDocQueue(int32_t maxSize)
A ScorerDocQueue maintains a partial ordering of its Scorers such that the least Scorer can always be...
Definition: ScorerDocQueue.h:16
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
void clear()
Removes all entries from the ScorerDocQueue.
virtual ~ScorerDocQueue()
ScorerPtr top()
Returns the least Scorer of the ScorerDocQueue in constant time. Should not be used when the queue is...
int32_t size()
Returns the number of scorers currently stored in the ScorerDocQueue.
int32_t topDoc()
Returns document number of the least Scorer of the ScorerDocQueue in constant time....
clucene.sourceforge.net