java.io.Serializable
, java.lang.Comparable<ScriptSortBuilder.ScriptSortType>
, Writeable
public static enum ScriptSortBuilder.ScriptSortType extends java.lang.Enum<ScriptSortBuilder.ScriptSortType> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant | Description |
---|---|
NUMBER |
script sort for a numeric value
|
STRING |
script sort for a string value
|
Modifier and Type | Method | Description |
---|---|---|
static ScriptSortBuilder.ScriptSortType |
fromString(java.lang.String str) |
|
java.lang.String |
toString() |
|
static ScriptSortBuilder.ScriptSortType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ScriptSortBuilder.ScriptSortType[] |
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 ScriptSortBuilder.ScriptSortType STRING
public static final ScriptSortBuilder.ScriptSortType NUMBER
public static ScriptSortBuilder.ScriptSortType[] values()
for (ScriptSortBuilder.ScriptSortType c : ScriptSortBuilder.ScriptSortType.values()) System.out.println(c);
public static ScriptSortBuilder.ScriptSortType 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 ScriptSortBuilder.ScriptSortType fromString(java.lang.String str)
public java.lang.String toString()
toString
in class java.lang.Enum<ScriptSortBuilder.ScriptSortType>