java.io.Serializable
, java.lang.Comparable<FunctionScoreQuery.ScoreMode>
, Writeable
public static enum FunctionScoreQuery.ScoreMode extends java.lang.Enum<FunctionScoreQuery.ScoreMode> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Method | Description |
---|---|---|
static FunctionScoreQuery.ScoreMode |
fromString(java.lang.String scoreMode) |
|
static FunctionScoreQuery.ScoreMode |
readFromStream(StreamInput in) |
|
static FunctionScoreQuery.ScoreMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static FunctionScoreQuery.ScoreMode[] |
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 FunctionScoreQuery.ScoreMode FIRST
public static final FunctionScoreQuery.ScoreMode AVG
public static final FunctionScoreQuery.ScoreMode MAX
public static final FunctionScoreQuery.ScoreMode SUM
public static final FunctionScoreQuery.ScoreMode MIN
public static final FunctionScoreQuery.ScoreMode MULTIPLY
public static FunctionScoreQuery.ScoreMode[] values()
for (FunctionScoreQuery.ScoreMode c : FunctionScoreQuery.ScoreMode.values()) System.out.println(c);
public static FunctionScoreQuery.ScoreMode 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 void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static FunctionScoreQuery.ScoreMode readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public static FunctionScoreQuery.ScoreMode fromString(java.lang.String scoreMode)