|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.apache.lucene.search.Scorer
gate.creole.annic.apache.lucene.search.ConjunctionScorer
final class ConjunctionScorer
Scorer for conjunctions, sets of queries, all of which are required.
| Field Summary | |
|---|---|
private float |
coord
|
private boolean |
firstTime
|
private boolean |
more
|
private LinkedList |
scorers
|
| Fields inherited from class gate.creole.annic.apache.lucene.search.Scorer |
|---|
searcher |
| Constructor Summary | |
|---|---|
ConjunctionScorer(Similarity similarity)
|
|
| Method Summary | |
|---|---|
(package private) void |
add(Scorer scorer)
|
int |
doc()
Returns the current document number. |
private boolean |
doNext()
|
Explanation |
explain(int doc)
Returns an explanation of the score for doc. |
private Scorer |
first()
|
private void |
init()
|
private Scorer |
last()
|
boolean |
next(Searcher searcher)
Advance to the next document matching the query. |
float |
score(Searcher searcher)
Returns the score of the current document. |
boolean |
skipTo(int target)
Skips to the first match beyond the current whose document number is greater than or equal to target. |
private void |
sortScorers()
|
| Methods inherited from class gate.creole.annic.apache.lucene.search.Scorer |
|---|
getSimilarity, score |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private LinkedList scorers
private boolean firstTime
private boolean more
private float coord
| Constructor Detail |
|---|
public ConjunctionScorer(Similarity similarity)
| Method Detail |
|---|
final void add(Scorer scorer)
throws IOException
IOExceptionprivate Scorer first()
private Scorer last()
public int doc()
Scorer#next() is called the first time.
doc in class Scorer
public boolean next(Searcher searcher)
throws IOException
Scorer
next in class ScorerIOException
private boolean doNext()
throws IOException
IOException
public boolean skipTo(int target)
throws IOException
ScorerReturns true iff there is such a match.
Behaves as if written:
boolean skipTo(int target) {
do {
if (!next())
return false;
} while (target > doc());
return true;
}
Most implementations are considerably more efficient than that.
skipTo in class ScorerIOException
public float score(Searcher searcher)
throws IOException
Scorer#next() is called the first time.
score in class ScorerIOException
private void init()
throws IOException
IOException
private void sortScorers()
throws IOException
IOException
public Explanation explain(int doc)
throws IOException
Scorerdoc.
explain in class ScorerIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||