Package org.apache.lucene.tests.search
Class AssertingScorer
java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorer
org.apache.lucene.tests.search.AssertingScorer
Wraps a Scorer with additional checks
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable -
Method Summary
Modifier and TypeMethodDescriptionintadvanceShallow(int target) intdocID()getIn()floatgetMaxScore(int upTo) iterator()voidnextDocsAndScores(int upTo, Bits liveDocs, DocAndFloatFeatureBuffer buffer) floatscore()voidsetMinCompetitiveScore(float score) toString()static ScorerWrap the given scorer with additional checks.Methods inherited from class org.apache.lucene.search.Scorable
smoothingScore
-
Method Details
-
wrap
Wrap the given scorer with additional checks.- Parameters:
other- the scorercanScore- whether the scorer is allowed to compute scores, typically true for scoring clauses of the query if the collector needs scorescanSetMinCompetitiveScore- whether the scorer is allowed to set min competitive scores, typically true if the score mode is TOP_SCORES and this scorer is the top-level scoring clause
-
getIn
-
setMinCompetitiveScore
- Overrides:
setMinCompetitiveScorein classScorable- Throws:
IOException
-
advanceShallow
- Overrides:
advanceShallowin classScorer- Throws:
IOException
-
getMaxScore
- Specified by:
getMaxScorein classScorer- Throws:
IOException
-
score
- Specified by:
scorein classScorable- Throws:
IOException
-
getChildren
- Overrides:
getChildrenin classScorable
-
docID
public int docID() -
toString
-
iterator
-
twoPhaseIterator
- Overrides:
twoPhaseIteratorin classScorer
-
nextDocsAndScores
public void nextDocsAndScores(int upTo, Bits liveDocs, DocAndFloatFeatureBuffer buffer) throws IOException - Overrides:
nextDocsAndScoresin classScorer- Throws:
IOException
-