Package org.apache.lucene.tests.search
Class AssertingScorable
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.FilterScorable
-
- org.apache.lucene.tests.search.AssertingScorable
-
public class AssertingScorable extends FilterScorable
Wraps another Scorable and asserts that scores are reasonable and only called when positioned
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.FilterScorable
in
-
-
Constructor Summary
Constructors Constructor Description AssertingScorable(Scorable in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
score()
void
setMinCompetitiveScore(float minScore)
static Scorable
unwrap(Scorable in)
static Scorable
wrap(Scorable in)
-
Methods inherited from class org.apache.lucene.search.FilterScorable
docID, getChildren
-
Methods inherited from class org.apache.lucene.search.Scorable
smoothingScore
-
-
-
-
Constructor Detail
-
AssertingScorable
public AssertingScorable(Scorable in)
-
-
Method Detail
-
score
public float score() throws IOException
- Overrides:
score
in classFilterScorable
- Throws:
IOException
-
setMinCompetitiveScore
public void setMinCompetitiveScore(float minScore) throws IOException
- Overrides:
setMinCompetitiveScore
in classScorable
- Throws:
IOException
-
-