|
||||||||||
| 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.TermScorer
final class TermScorer
| Field Summary | |
|---|---|
private int |
doc
|
private int[] |
docs
|
private int[] |
freqs
|
private byte[] |
norms
|
private int |
pointer
|
private int |
pointerMax
|
private static int |
SCORE_CACHE_SIZE
|
private float[] |
scoreCache
|
private Term |
term
|
private TermDocs |
termDocs
|
private Weight |
weight
|
private float |
weightValue
|
| Fields inherited from class gate.creole.annic.apache.lucene.search.Scorer |
|---|
searcher |
| Constructor Summary | |
|---|---|
TermScorer(Weight weight,
TermDocs td,
Similarity similarity,
byte[] norms,
Term term)
|
|
| Method Summary | |
|---|---|
int |
doc()
Returns the current document number. |
Explanation |
explain(int doc)
Returns an explanation of the score for doc. |
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. |
String |
toString()
|
| 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, wait, wait, wait |
| Field Detail |
|---|
private Weight weight
private TermDocs termDocs
private byte[] norms
private float weightValue
private int doc
private Term term
private final int[] docs
private final int[] freqs
private int pointer
private int pointerMax
private static final int SCORE_CACHE_SIZE
private float[] scoreCache
| Constructor Detail |
|---|
TermScorer(Weight weight,
TermDocs td,
Similarity similarity,
byte[] norms,
Term term)
throws IOException
IOException| Method Detail |
|---|
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
public float score(Searcher searcher)
throws IOException
Scorer#next() is called the first time.
score in class ScorerIOException
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 Explanation explain(int doc)
throws IOException
Scorerdoc.
explain in class ScorerIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||