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
-
public class AssertingScorer extends Scorer
Wraps a Scorer with additional checks
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvanceShallow(int target)intdocID()Collection<Scorable.ChildScorable>getChildren()ScorergetIn()floatgetMaxScore(int upTo)DocIdSetIteratoriterator()floatscore()voidsetMinCompetitiveScore(float score)StringtoString()TwoPhaseIteratortwoPhaseIterator()static Scorerwrap(Random random, Scorer other, ScoreMode scoreMode, boolean canCallMinCompetitiveScore)-
Methods inherited from class org.apache.lucene.search.Scorable
smoothingScore
-
-
-
-
Method Detail
-
wrap
public static Scorer wrap(Random random, Scorer other, ScoreMode scoreMode, boolean canCallMinCompetitiveScore)
-
getIn
public Scorer getIn()
-
setMinCompetitiveScore
public void setMinCompetitiveScore(float score) throws IOException- Overrides:
setMinCompetitiveScorein classScorable- Throws:
IOException
-
advanceShallow
public int advanceShallow(int target) throws IOException- Overrides:
advanceShallowin classScorer- Throws:
IOException
-
getMaxScore
public float getMaxScore(int upTo) throws IOException- Specified by:
getMaxScorein classScorer- Throws:
IOException
-
score
public float score() throws IOException- Specified by:
scorein classScorable- Throws:
IOException
-
getChildren
public Collection<Scorable.ChildScorable> getChildren()
- Overrides:
getChildrenin classScorable
-
iterator
public DocIdSetIterator iterator()
-
twoPhaseIterator
public TwoPhaseIterator twoPhaseIterator()
- Overrides:
twoPhaseIteratorin classScorer
-
-