class TermsIncludingScoreQuery.SVInOrderScorer extends Scorer
Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
(package private) long |
cost |
(package private) DocIdSetIterator |
matchingDocsIterator |
(package private) float[] |
scores |
| Constructor and Description |
|---|
SVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
protected void |
fillDocsAndScores(FixedBitSet matchingDocs,
TermsEnum termsEnum) |
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, twoPhaseIteratorfinal DocIdSetIterator matchingDocsIterator
final float[] scores
final long cost
protected void fillDocsAndScores(FixedBitSet matchingDocs, TermsEnum termsEnum) throws java.io.IOException
java.io.IOExceptionpublic float score()
throws java.io.IOException
ScorerDocIdSetIterator.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
Scorerpublic 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 ScorerDocIdSetIterator.docID()public 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.