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