org.springframework.data.elasticsearch.core
Class DefaultResultMapper
java.lang.Object
org.springframework.data.elasticsearch.core.AbstractResultMapper
org.springframework.data.elasticsearch.core.DefaultResultMapper
- All Implemented Interfaces:
- GetResultMapper, MultiGetResultMapper, ResultsMapper, SearchResultMapper
public class DefaultResultMapper
- extends AbstractResultMapper
- Author:
- Artur Konczak
|
Method Summary |
|
mapResult(org.elasticsearch.action.get.GetResponse response,
Class<T> clazz)
|
|
mapResults(org.elasticsearch.action.get.MultiGetResponse responses,
Class<T> clazz)
|
|
mapResults(org.elasticsearch.action.search.SearchResponse response,
Class<T> clazz,
Pageable pageable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResultMapper
public DefaultResultMapper()
DefaultResultMapper
public DefaultResultMapper(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)
DefaultResultMapper
public DefaultResultMapper(EntityMapper entityMapper)
mapResults
public <T> FacetedPage<T> mapResults(org.elasticsearch.action.search.SearchResponse response,
Class<T> clazz,
Pageable pageable)
mapResult
public <T> T mapResult(org.elasticsearch.action.get.GetResponse response,
Class<T> clazz)
mapResults
public <T> LinkedList<T> mapResults(org.elasticsearch.action.get.MultiGetResponse responses,
Class<T> clazz)
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.