public class ReqOptSumScorer extends Scorer
Scorer implements DocIdSetIterator.skipTo(int).| Constructor and Description |
|---|
ReqOptSumScorer(Scorer reqScorer,
Scorer optScorer)
Construct a
ReqOptScorer. |
| Modifier and Type | Method and Description |
|---|---|
int |
doc()
Returns the current document number.
|
Explanation |
explain(int doc)
Explain the score of a document.
|
boolean |
next()
Moves to the next docId in the set.
|
float |
score()
Returns the score of the current document matching the query.
|
boolean |
skipTo(int target)
Skips entries to the first beyond the current whose document number is
greater than or equal to target.
|
getSimilarity, score, scorepublic boolean next()
throws java.io.IOException
DocIdSetIteratornext in class DocIdSetIteratorjava.io.IOExceptionpublic boolean skipTo(int target)
throws java.io.IOException
DocIdSetIteratorReturns true iff there is such an entry.
Behaves as if written:
boolean skipTo(int target) {
do {
if (!next())
return false;
} while (target > doc());
return true;
}
Some implementations are considerably more efficient than that.skipTo in class DocIdSetIteratorjava.io.IOExceptionpublic int doc()
DocIdSetIterator This is invalid until DocIdSetIterator.next() is called for the first time.
doc in class DocIdSetIteratorpublic float score()
throws java.io.IOException
next() is called the first time.public Explanation explain(int doc) throws java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.