Enum ValueConvert
- All Implemented Interfaces:
Serializable
,Comparable<ValueConvert>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Deprecated.UseValueModel.INDEX
instead.Deprecated.UseValueModel.MAPPING
instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueModel
toValueModel
(ValueConvert valueConvert) Deprecated.static ValueConvert
Deprecated.Returns the enum constant of this type with the specified name.static ValueConvert[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YES
Deprecated.UseValueModel.MAPPING
instead.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
Deprecated.UseValueModel.INDEX
instead.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.
-
DEFAULT
Deprecated.The result of applying this constant is the same asYES
.It should never be used explicitly, and is only added to help with migration purposes. It is used as default value in some annotations like
FieldProjection
to help determine if the attribute value was not set explicitly.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
toValueModel
Deprecated.
-
ValueModel
instead.