Interface PropertyValueConverter
- All Known Implementing Classes:
AbstractPropertyValueConverter
,AbstractRangePropertyValueConverter
,DatePropertyValueConverter
,DateRangePropertyValueConverter
,NumberRangePropertyValueConverter
,TemporalPropertyValueConverter
,TemporalRangePropertyValueConverter
public interface PropertyValueConverter
Interface defining methods to convert the value of an entity-property to a value in Elasticsearch and back.
- Author:
- Peter-Josef Meisch, Sascha Woo
-
Method Summary
-
Method Details
-
write
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
-
read
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
-