Class ElasticsearchStringValueToStringConverter
java.lang.Object
org.springframework.data.elasticsearch.repository.support.value.ElasticsearchStringValueToStringConverter
- All Implemented Interfaces:
GenericConverter
Values in elasticsearch query may contain quotations and should be escaped when converting. Note that the converter
should only be used in this situation, rather than common string to string conversions.
- Since:
- 5.3
- Author:
- Haibo Liu
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
-
Constructor Details
-
ElasticsearchStringValueToStringConverter
public ElasticsearchStringValueToStringConverter()
-
-
Method Details
-
getConvertibleTypes
- Specified by:
getConvertibleTypes
in interfaceGenericConverter
-
convert
@Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) - Specified by:
convert
in interfaceGenericConverter
-