public enum ParameterType extends Enum<ParameterType>
Enum Constant and Description |
---|
INDEX_GEO_DIST_ERROR_PCT
Distance error percent used to determine precision in spatial prefix tree where applicable.
|
INDEX_GEO_MAX_LEVELS
Maximum number of levels to be used in the spatial prefix tree where applicable.
|
INDEX_POSITION |
MAPPED_NAME |
MAPPING |
STATUS |
STRING_ANALYZER
Analyzer for String Type with mapping STRING
|
TEXT_ANALYZER
Analyzer for String Type with mapping TEXT
|
Modifier and Type | Method and Description |
---|---|
static String |
customParameterName(String name) |
<V> V |
findParameter(Parameter[] parameters,
V defaultValue) |
static List<Parameter> |
getCustomParameters(Parameter[] parameters) |
String |
getName() |
<V> Parameter<V> |
getParameter(V value) |
boolean |
hasParameter(Parameter[] parameters) |
String |
toString() |
static ParameterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParameterType MAPPING
public static final ParameterType INDEX_POSITION
public static final ParameterType MAPPED_NAME
public static final ParameterType STATUS
public static final ParameterType INDEX_GEO_MAX_LEVELS
public static final ParameterType INDEX_GEO_DIST_ERROR_PCT
public static final ParameterType STRING_ANALYZER
public static final ParameterType TEXT_ANALYZER
public static ParameterType[] values()
for (ParameterType c : ParameterType.values()) System.out.println(c);
public static ParameterType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ParameterType>
public String getName()
public <V> V findParameter(Parameter[] parameters, V defaultValue)
public boolean hasParameter(Parameter[] parameters)
public <V> Parameter<V> getParameter(V value)
Copyright © 2012–2023. All rights reserved.