The ScorerDocQueue type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AdjustTop | 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); } |
![]() | Clear | Removes all entries from the ScorerDocQueue. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Insert | Adds a Scorer to the ScorerDocQueue in log(size) time if either
the ScorerDocQueue is not full, or not lessThan(scorer, top()).
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Pop | Removes and returns the least scorer of the ScorerDocQueue in log(size)
time.
Should not be used when the queue is empty.
|
![]() | Put | Adds a Scorer to a ScorerDocQueue in log(size) time.
If one tries to add more Scorers than maxSize
a RuntimeException (ArrayIndexOutOfBound) is thrown.
|
![]() | Size | Returns the number of scorers currently stored in the ScorerDocQueue. |
![]() | Top | Returns the least Scorer of the ScorerDocQueue in constant time.
Should not be used when the queue is empty.
|
![]() | TopDoc | Returns document number of the least Scorer of the ScorerDocQueue
in constant time.
Should not be used when the queue is empty.
|
![]() | TopNextAndAdjustElsePop | |
![]() | TopScore | |
![]() | TopSkipToAndAdjustElsePop | |
![]() | ToString | (Inherited from Object.) |