Enum ValueConvert
- All Implemented Interfaces:
Serializable
,Comparable<ValueConvert>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueConvert
Returns the enum constant of this type with the specified name.static ValueConvert[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YES
Enables value conversion.For field values passed to the DSL (for example the parameter of a match predicate), the
DSL converter
defined in the mapping will be used. This generally means values passed to the DSL will be expected to have the same type as the entity property used to populate the index field.For identifier values passed to the DSL (for example the parameter of an ID predicate), the identifier converter defined in the mapping will be used. This generally means values passed to the DSL will be expected to have the same type as the entity property used to generate document identifiers.
For fields values returned by the backend (for example in projections), the
projection converter
defined in the mapping will be used. This generally means the projected values will have the same type as the entity property used to populate the index field.If no converter was defined in the mapping, this option won't have any effect.
Please refer to the reference documentation for more information.
-
NO
Disables value conversion.For field values passed to the DSL (for example the parameter of a match predicate), no converter will be used. This generally means values passed to the DSL will be expected to have the same type as the index field.
For identifier values passed to the DSL (for example the parameter of an ID predicate), no converter will be used. This means values passed to the DSL will be expected to be strings that match document identifiers exactly.
For fields values returned by the backend (for example in projections), no converter will be used. This generally means the projected values will have the same type as the index field.
Please refer to the reference documentation for more information.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-