Class DatePropertyValueConverter
java.lang.Object
org.springframework.data.elasticsearch.core.convert.AbstractPropertyValueConverter
org.springframework.data.elasticsearch.core.convert.DatePropertyValueConverter
- All Implemented Interfaces:
PropertyValueConverter
- Since:
- 4.3
- Author:
- Sascha Woo
-
Constructor Summary
ConstructorDescriptionDatePropertyValueConverter
(PersistentProperty<?> property, List<ElasticsearchDateConverter> dateConverters) -
Method Summary
Methods inherited from class org.springframework.data.elasticsearch.core.convert.AbstractPropertyValueConverter
getProperty
-
Constructor Details
-
DatePropertyValueConverter
public DatePropertyValueConverter(PersistentProperty<?> property, List<ElasticsearchDateConverter> dateConverters)
-
-
Method Details
-
read
Description copied from interface:PropertyValueConverter
Converts an elasticsearch property value to a property value.- Parameters:
value
- the elasticsearch property value to convert, must not be null- Returns:
- The converted value, must not be null
-
write
Description copied from interface:PropertyValueConverter
Converts a property value to an elasticsearch value. If the converter cannot convert the value, it must return a String representation.- Parameters:
value
- the value to convert, must not be null- Returns:
- The elasticsearch property value, must not be null
-