The ScorerDocQueue type exposes the following members.

Constructors

  NameDescription
Public methodScorerDocQueue
Create a ScorerDocQueue with a maximum size.

Methods

  NameDescription
Public methodAdjustTop
Should be called when the scorer at top changes doc() value. Still log(n) worst case, but it's at least twice as fast to
            { pq.top().change(); pq.adjustTop(); }
            
instead of
            { o = pq.pop(); o.change(); pq.push(o); }
            
Public methodClear
Removes all entries from the ScorerDocQueue.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert
Adds a Scorer to the ScorerDocQueue in log(size) time if either the ScorerDocQueue is not full, or not lessThan(scorer, top()).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPop
Removes and returns the least scorer of the ScorerDocQueue in log(size) time. Should not be used when the queue is empty.
Public methodPut
Adds a Scorer to a ScorerDocQueue in log(size) time. If one tries to add more Scorers than maxSize a RuntimeException (ArrayIndexOutOfBound) is thrown.
Public methodSize
Returns the number of scorers currently stored in the ScorerDocQueue.
Public methodTop
Returns the least Scorer of the ScorerDocQueue in constant time. Should not be used when the queue is empty.
Public methodTopDoc
Returns document number of the least Scorer of the ScorerDocQueue in constant time. Should not be used when the queue is empty.
Public methodTopNextAndAdjustElsePop
Public methodTopScore
Public methodTopSkipToAndAdjustElsePop
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also