public enum SpatialStrategy extends java.lang.Enum<SpatialStrategy> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Method and Description |
---|---|
static SpatialStrategy |
fromString(java.lang.String strategyName) |
java.lang.String |
getStrategyName() |
static SpatialStrategy |
readFromStream(StreamInput in) |
static SpatialStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpatialStrategy[] |
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 SpatialStrategy TERM
public static final SpatialStrategy RECURSIVE
public static SpatialStrategy[] values()
for (SpatialStrategy c : SpatialStrategy.values()) System.out.println(c);
public static SpatialStrategy 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 java.lang.String getStrategyName()
public static SpatialStrategy readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static SpatialStrategy fromString(java.lang.String strategyName)