Enum Class PainlessContext
java.lang.Object
java.lang.Enum<PainlessContext>
co.elastic.clients.elasticsearch.core.scripts_painless_execute.PainlessContext
- All Implemented Interfaces:
JsonEnum,JsonpSerializable,Serializable,Comparable<PainlessContext>,Constable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface co.elastic.clients.json.JsonEnum
JsonEnum.Deserializer<T extends JsonEnum> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe context for boolean fields.The context for composite runtime fields.The context for date fields.The context for double numeric fields.Treats scripts as if they were run inside a script query.The context for geo-point fields.The context foripfields.The context for keyword fields.The context for long numeric fields.The default context if no other context is specified.Treats scripts as if they were run inside ascript_scorefunction in afunction_scorequery. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PainlessContextReturns the enum constant of this class with the specified name.static PainlessContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PainlessTest
The default context if no other context is specified. -
Filter
Treats scripts as if they were run inside a script query. -
Score
Treats scripts as if they were run inside ascript_scorefunction in afunction_scorequery. -
BooleanField
The context for boolean fields. The script returns atrueorfalseresponse. -
DateField
The context for date fields.emittakes a long value and the script returns a sorted list of dates. -
DoubleField
The context for double numeric fields. The script returns a sorted list of double values. -
GeoPointField
The context for geo-point fields.emittakes two double parameters, the latitude and longitude values, and the script returns an object in GeoJSON format containing the coordinates for the geo point. -
IpField
The context foripfields. The script returns a sorted list of IP addresses. -
KeywordField
The context for keyword fields. The script returns a sorted list of string values. -
LongField
The context for long numeric fields. The script returns a sorted list of long values. -
CompositeField
The context for composite runtime fields. The script returns a map of values.
-
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
jsonValue
-