@Deprecated public class ScorerDocQueue extends Object
Constructor and Description |
---|
ScorerDocQueue(int maxSize)
Deprecated.
Create a ScorerDocQueue with a maximum size.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustTop()
Deprecated.
Should be called when the scorer at top changes doc() value.
|
void |
clear()
Deprecated.
Removes all entries from the ScorerDocQueue.
|
boolean |
insert(Scorer scorer)
Deprecated.
Adds a Scorer to the ScorerDocQueue in log(size) time if either
the ScorerDocQueue is not full, or not lessThan(scorer, top()).
|
Scorer |
pop()
Deprecated.
Removes and returns the least scorer of the ScorerDocQueue in log(size)
time.
|
void |
put(Scorer scorer)
Deprecated.
Adds a Scorer to a ScorerDocQueue in log(size) time.
|
int |
size()
Deprecated.
Returns the number of scorers currently stored in the ScorerDocQueue.
|
Scorer |
top()
Deprecated.
Returns the least Scorer of the ScorerDocQueue in constant time.
|
int |
topDoc()
Deprecated.
Returns document number of the least Scorer of the ScorerDocQueue
in constant time.
|
boolean |
topNextAndAdjustElsePop()
Deprecated.
|
float |
topScore()
Deprecated.
|
boolean |
topSkipToAndAdjustElsePop(int target)
Deprecated.
|
public ScorerDocQueue(int maxSize)
public final void put(Scorer scorer)
public boolean insert(Scorer scorer)
scorer
- public final Scorer top()
public final int topDoc()
public final float topScore() throws IOException
IOException
public final boolean topNextAndAdjustElsePop() throws IOException
IOException
public final boolean topSkipToAndAdjustElsePop(int target) throws IOException
IOException
public final Scorer pop()
public final void adjustTop()
{ pq.top().change(); pq.adjustTop(); }instead of
{ o = pq.pop(); o.change(); pq.push(o); }
public final int size()
public final void clear()