public abstract class ScoreFunction
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ScoreFunction(CombineFunction scoreCombiner) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doEquals(ScoreFunction other)
Indicates whether some other
ScoreFunction object of the same type is "equal to" this one. |
protected abstract int |
doHashCode() |
boolean |
equals(java.lang.Object obj) |
CombineFunction |
getDefaultScoreCombiner() |
abstract LeafScoreFunction |
getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) |
float |
getWeight() |
int |
hashCode() |
abstract boolean |
needsScores()
Indicates if document scores are needed by this function.
|
protected ScoreFunction |
rewrite(org.apache.lucene.index.IndexReader reader) |
protected ScoreFunction(CombineFunction scoreCombiner)
public CombineFunction getDefaultScoreCombiner()
public abstract LeafScoreFunction getLeafScoreFunction(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
java.io.IOExceptionpublic abstract boolean needsScores()
true if scores are needed.public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic float getWeight()
protected abstract boolean doEquals(ScoreFunction other)
ScoreFunction object of the same type is "equal to" this one.public final int hashCode()
hashCode in class java.lang.Objectprotected abstract int doHashCode()
protected ScoreFunction rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
java.io.IOException