public enum CombineFunction extends java.lang.Enum<CombineFunction> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Method and Description |
---|---|
abstract float |
combine(double queryScore,
double funcScore,
double maxBoost) |
abstract org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Explanation queryExpl,
org.apache.lucene.search.Explanation funcExpl,
float maxBoost) |
static CombineFunction |
fromString(java.lang.String combineFunction) |
static CombineFunction |
readFromStream(StreamInput in) |
static CombineFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CombineFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final CombineFunction MULTIPLY
public static final CombineFunction REPLACE
public static final CombineFunction SUM
public static final CombineFunction AVG
public static final CombineFunction MIN
public static final CombineFunction MAX
public static CombineFunction[] values()
for (CombineFunction c : CombineFunction.values()) System.out.println(c);
public static CombineFunction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract float combine(double queryScore, double funcScore, double maxBoost)
public abstract org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Explanation queryExpl, org.apache.lucene.search.Explanation funcExpl, float maxBoost)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static CombineFunction readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public static CombineFunction fromString(java.lang.String combineFunction)