Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
FREQUENCY
Sort should first be based on document frequency, then score and then the term itself.
|
SCORE
Sort should first be based on score, then document frequency and then the term itself.
|
Modifier and Type | Method and Description |
---|---|
static SortBy |
readFromStream(StreamInput in) |
static SortBy |
resolve(java.lang.String str) |
static SortBy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortBy[] |
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 SortBy SCORE
public static final SortBy FREQUENCY
public static SortBy[] values()
for (SortBy c : SortBy.values()) System.out.println(c);
public static SortBy 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 SortBy readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public static SortBy resolve(java.lang.String str)