public abstract class AbstractRangePropertyValueConverter<T> extends AbstractPropertyValueConverter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GT_FIELD |
protected static String |
GTE_FIELD |
protected static String |
LT_FIELD |
protected static String |
LTE_FIELD |
| Constructor and Description |
|---|
AbstractRangePropertyValueConverter(PersistentProperty<?> property) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
format(T value) |
protected Class<?> |
getGenericType() |
protected abstract T |
parse(String value) |
Object |
read(Object value)
Converts an elasticsearch property value to a property value.
|
Object |
write(Object value)
Converts a property value to an elasticsearch value.
|
getPropertyprotected static final String LT_FIELD
protected static final String LTE_FIELD
protected static final String GT_FIELD
protected static final String GTE_FIELD
public AbstractRangePropertyValueConverter(PersistentProperty<?> property)
public Object read(Object value)
PropertyValueConvertervalue - the elasticsearch property value to convert, must not be nullpublic Object write(Object value)
PropertyValueConvertervalue - the value to convert, must not be nullprotected Class<?> getGenericType()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.