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 EntityMapper
IOException
public <T> T mapToObject(String source, Class<T> clazz) throws IOException
mapToObject
in interface EntityMapper
IOException
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.