public abstract class AbstractRangePersistentPropertyConverter<T> extends AbstractPersistentPropertyConverter
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 |
---|
AbstractRangePersistentPropertyConverter(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 persistent property value.
|
Object |
write(Object value)
Converts a persistent property value to an elasticsearch property value.
|
getProperty
protected static final String LT_FIELD
protected static final String LTE_FIELD
protected static final String GT_FIELD
protected static final String GTE_FIELD
public AbstractRangePersistentPropertyConverter(PersistentProperty<?> property)
public Object read(Object value)
ElasticsearchPersistentPropertyConverter
value
- the elasticsearch property value to convert, must not be nullpublic Object write(Object value)
ElasticsearchPersistentPropertyConverter
value
- the persistent property value to convert, must not be nullprotected Class<?> getGenericType()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.