protected class FunctionQuery.AllScorer extends Scorer
Scorable.ChildScorable| Modifier and Type | Field and Description |
|---|---|
(package private) float |
boost |
(package private) DocIdSetIterator |
iterator |
(package private) int |
maxDoc |
(package private) IndexReader |
reader |
(package private) FunctionValues |
vals |
(package private) FunctionQuery.FunctionWeight |
weight |
| Constructor and Description |
|---|
AllScorer(LeafReaderContext context,
FunctionQuery.FunctionWeight w,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
Explanation |
explain(int doc) |
float |
getMaxScore(int upTo)
Return the maximum score that documents between the last
target
that this iterator was shallow-advanced to
included and upTo included. |
DocIdSetIterator |
iterator()
Return a
DocIdSetIterator over matching documents. |
float |
score()
Returns the score of the current document matching the query.
|
advanceShallow, getWeight, twoPhaseIteratorgetChildren, setMinCompetitiveScorefinal IndexReader reader
final FunctionQuery.FunctionWeight weight
final int maxDoc
final float boost
final DocIdSetIterator iterator
final FunctionValues vals
public AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost) throws java.io.IOException
java.io.IOExceptionpublic DocIdSetIterator iterator()
ScorerDocIdSetIterator over matching documents.
The returned iterator will either be positioned on -1 if no
documents have been scored yet, DocIdSetIterator.NO_MORE_DOCS
if all documents have been scored already, or the last document id that
has been scored otherwise.
The returned iterator is a view: calling this method several times will
return iterators that have the same state.public int docID()
Scorablepublic float score()
throws java.io.IOException
Scorablepublic float getMaxScore(int upTo)
throws java.io.IOException
Scorertarget
that this iterator was shallow-advanced to
included and upTo included.getMaxScore in class Scorerjava.io.IOExceptionpublic Explanation explain(int doc) throws java.io.IOException
java.io.IOException