public class ReqExclScorer extends Scorer
Scorer implements DocIdSetIterator.skipTo(int),
and it uses the skipTo() on the given scorers.| Constructor and Description |
|---|
ReqExclScorer(Scorer reqScorer,
Scorer exclScorer)
Construct a
ReqExclScorer. |
| Modifier and Type | Method and Description |
|---|---|
int |
doc()
Returns the current document number.
|
Explanation |
explain(int doc)
Returns an explanation of the score for 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 to the first match beyond the current whose document number is
greater than or equal to a given target.
|
getSimilarity, score, scorepublic boolean next()
throws java.io.IOException
DocIdSetIteratornext 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 boolean skipTo(int target)
throws java.io.IOException
explain(int) method should not be used.skipTo in class DocIdSetIteratortarget - The target document number.java.io.IOExceptionpublic Explanation explain(int doc) throws java.io.IOException
ScorerDocIdSetIterator.next(), DocIdSetIterator.skipTo(int) and
Scorer.score(HitCollector) methods should not be used.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.