Enum Class Dynamic
- All Implemented Interfaces:
Serializable
,Comparable<Dynamic>
,Constable
Values for the
dynamic
mapping parameter.- Since:
- 4.3
- Author:
- Sascha Woo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNew fields are ignored.Inherit the dynamic setting from their parent object or from the mapping type.New fields are added to the mapping as runtime fields.If new fields are detected, an exception is thrown and the document is rejected.New fields are added to the mapping. -
Method Summary
-
Enum Constant Details
-
TRUE
New fields are added to the mapping. -
RUNTIME
New fields are added to the mapping as runtime fields. These fields are not indexed, and are loaded from_source
at query time. -
FALSE
New fields are ignored. These fields will not be indexed or searchable, but will still appear in the_source
field of returned hits. These fields will not be added to the mapping, and new fields must be added explicitly. -
STRICT
If new fields are detected, an exception is thrown and the document is rejected. New fields must be explicitly added to the mapping. -
INHERIT
Inherit the dynamic setting from their parent object or from the mapping type.
-
-
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
-
getMappedName
-