Class TemporalPropertyValueConverter

java.lang.Object
org.springframework.data.elasticsearch.core.convert.AbstractPropertyValueConverter
org.springframework.data.elasticsearch.core.convert.TemporalPropertyValueConverter
All Implemented Interfaces:
PropertyValueConverter

public class TemporalPropertyValueConverter extends AbstractPropertyValueConverter
Since:
4.3
Author:
Sascha Woo
  • Constructor Details

  • Method Details

    • read

      public Object read(Object value)
      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

      public Object write(Object value)
      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