protected class FunctionQuery.AllScorer extends Scorer
Scorer.ChildScorer
Modifier and Type | Field and Description |
---|---|
(package private) DocIdSetIterator |
iterator |
(package private) int |
maxDoc |
(package private) float |
qWeight |
(package private) IndexReader |
reader |
(package private) FunctionValues |
vals |
(package private) FunctionQuery.FunctionWeight |
weight |
Constructor and Description |
---|
AllScorer(LeafReaderContext context,
FunctionQuery.FunctionWeight w,
float qWeight) |
Modifier and Type | Method and Description |
---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
Explanation |
explain(int doc) |
int |
freq()
Returns the freq of this Scorer on the current document
|
DocIdSetIterator |
iterator()
Return a
DocIdSetIterator over matching documents. |
float |
score()
Returns the score of the current document matching the query.
|
getChildren, getWeight, twoPhaseIterator
final IndexReader reader
final FunctionQuery.FunctionWeight weight
final int maxDoc
final float qWeight
final DocIdSetIterator iterator
final FunctionValues vals
public AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float qWeight) throws java.io.IOException
java.io.IOException
public DocIdSetIterator iterator()
Scorer
DocIdSetIterator
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()
Scorer
-1
if the Scorer.iterator()
is not positioned
or DocIdSetIterator.NO_MORE_DOCS
if it has been entirely consumed.docID
in class Scorer
DocIdSetIterator.docID()
public float score() throws java.io.IOException
Scorer
DocIdSetIterator.nextDoc()
or
DocIdSetIterator.advance(int)
is called on the Scorer.iterator()
the first time, or when called from within LeafCollector.collect(int)
.public int freq() throws java.io.IOException
Scorer
public Explanation explain(int doc) throws java.io.IOException
java.io.IOException