public class DefaultEntityMapper extends Object implements EntityMapper
ObjectMapper.| Constructor and Description |
|---|
DefaultEntityMapper(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> context)
Creates a new
DefaultEntityMapper using the given MappingContext. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
mapToObject(String source,
Class<T> clazz) |
String |
mapToString(Object object) |
public DefaultEntityMapper(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> context)
DefaultEntityMapper using the given MappingContext.context - must not be null.public String mapToString(Object object) throws IOException
mapToString in interface EntityMapperIOExceptionpublic <T> T mapToObject(String source, Class<T> clazz) throws IOException
mapToObject in interface EntityMapperIOExceptionCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.