|
||||||||||
| 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.BooleanScorer
final class BooleanScorer
| Nested Class Summary | |
|---|---|
(package private) static class |
BooleanScorer.Bucket
|
(package private) static class |
BooleanScorer.BucketTable
A simple hash table of document scores within a range. |
(package private) static class |
BooleanScorer.Collector
|
(package private) static class |
BooleanScorer.SubScorer
|
| Field Summary | |
|---|---|
private BooleanScorer.BucketTable |
bucketTable
|
private float[] |
coordFactors
|
private BooleanScorer.Bucket |
current
|
private int |
end
|
private int |
maxCoord
|
private int |
nextMask
|
private int |
prohibitedMask
|
private int |
requiredMask
|
private BooleanScorer.SubScorer |
scorers
|
| Fields inherited from class gate.creole.annic.apache.lucene.search.Scorer |
|---|
searcher |
| Constructor Summary | |
|---|---|
BooleanScorer(Similarity similarity)
|
|
| Method Summary | |
|---|---|
(package private) void |
add(Scorer scorer,
boolean required,
boolean prohibited)
|
private void |
computeCoordFactors()
|
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 BooleanScorer.SubScorer scorers
private BooleanScorer.BucketTable bucketTable
private int maxCoord
private float[] coordFactors
private int requiredMask
private int prohibitedMask
private int nextMask
private int end
private BooleanScorer.Bucket current
| Constructor Detail |
|---|
BooleanScorer(Similarity similarity)
| Method Detail |
|---|
final void add(Scorer scorer,
boolean required,
boolean prohibited)
throws IOException
IOException
private final void computeCoordFactors()
throws IOException
IOExceptionpublic 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 | |||||||||