Class AfterEffect.NoAfterEffect
- java.lang.Object
-
- org.apache.lucene.search.similarities.AfterEffect
-
- org.apache.lucene.search.similarities.AfterEffect.NoAfterEffect
-
- Enclosing class:
- AfterEffect
public static final class AfterEffect.NoAfterEffect extends AfterEffect
Implementation used when there is no aftereffect.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.AfterEffect
AfterEffect.NoAfterEffect
-
-
Constructor Summary
Constructors Constructor Description NoAfterEffect()
Sole constructor: parameter-free
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Explanation
explain(BasicStats stats, float tfn)
Returns an explanation for the score.float
score(BasicStats stats, float tfn)
Returns the aftereffect score.String
toString()
Subclasses must override this method to return the code of the after effect formula.
-
-
-
Method Detail
-
score
public final float score(BasicStats stats, float tfn)
Description copied from class:AfterEffect
Returns the aftereffect score.- Specified by:
score
in classAfterEffect
-
explain
public final Explanation explain(BasicStats stats, float tfn)
Description copied from class:AfterEffect
Returns an explanation for the score.- Specified by:
explain
in classAfterEffect
-
toString
public String toString()
Description copied from class:AfterEffect
Subclasses must override this method to return the code of the after effect formula. Refer to the original paper for the list.- Specified by:
toString
in classAfterEffect
-
-