Class AbstractRangePropertyValueConverter<T>

java.lang.Object
org.springframework.data.elasticsearch.core.convert.AbstractPropertyValueConverter
org.springframework.data.elasticsearch.core.convert.AbstractRangePropertyValueConverter<T>
All Implemented Interfaces:
PropertyValueConverter
Direct Known Subclasses:
DateRangePropertyValueConverter, NumberRangePropertyValueConverter, TemporalRangePropertyValueConverter

public abstract class AbstractRangePropertyValueConverter<T> extends AbstractPropertyValueConverter
Since:
4.3
Author:
Sascha Woo
  • Field Details

  • Constructor Details

    • AbstractRangePropertyValueConverter

      public AbstractRangePropertyValueConverter(PersistentProperty<?> property)
  • 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
    • format

      protected abstract String format(T value)
    • getGenericType

      protected Class<?> getGenericType()
    • parse

      protected abstract T parse(String value)