Class FunctionQuery.AllScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.lucene.queries.function.FunctionQuery.AllScorer
-
- Enclosing class:
- FunctionQuery
protected class FunctionQuery.AllScorer extends Scorer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) floatboost(package private) DocIdSetIteratoriterator(package private) intmaxDoc(package private) IndexReaderreader(package private) FunctionValuesvals(package private) FunctionQuery.FunctionWeightweight
-
Constructor Summary
Constructors Constructor Description AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdocID()Returns the doc ID that is currently being scored.Explanationexplain(int doc)floatgetMaxScore(int upTo)Return the maximum score that documents between the lasttargetthat this iterator wasshallow-advancedto included andupToincluded.DocIdSetIteratoriterator()Return aDocIdSetIteratorover matching documents.floatscore()Returns the score of the current document matching the query.-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight, twoPhaseIterator
-
Methods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore
-
-
-
-
Field Detail
-
reader
final IndexReader reader
-
weight
final FunctionQuery.FunctionWeight weight
-
maxDoc
final int maxDoc
-
boost
final float boost
-
iterator
final DocIdSetIterator iterator
-
vals
final FunctionValues vals
-
-
Constructor Detail
-
AllScorer
public AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
iterator
public DocIdSetIterator iterator()
Description copied from class:ScorerReturn aDocIdSetIteratorover matching documents. The returned iterator will either be positioned on-1if no documents have been scored yet,DocIdSetIterator.NO_MORE_DOCSif 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.
-
docID
public int docID()
Description copied from class:ScorableReturns the doc ID that is currently being scored.
-
score
public float score() throws java.io.IOExceptionDescription copied from class:ScorableReturns the score of the current document matching the query.
-
getMaxScore
public float getMaxScore(int upTo) throws java.io.IOExceptionDescription copied from class:ScorerReturn the maximum score that documents between the lasttargetthat this iterator wasshallow-advancedto included andupToincluded.- Specified by:
getMaxScorein classScorer- Throws:
java.io.IOException
-
explain
public Explanation explain(int doc) throws java.io.IOException
- Throws:
java.io.IOException
-
-