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

    Modifier and Type
    Method
    Description
    read(Object value)
    Converts an elasticsearch property value to a property value.
    write(Object value)
    Converts a property value to an elasticsearch value.
  • Method Details

    • write

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

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