Spring Data Elasticsearch

org.springframework.data.elasticsearch.core
Class DefaultResultMapper

java.lang.Object
  extended by org.springframework.data.elasticsearch.core.AbstractResultMapper
      extended by org.springframework.data.elasticsearch.core.DefaultResultMapper
All Implemented Interfaces:
GetResultMapper, MultiGetResultMapper, ResultsMapper, SearchResultMapper

public class DefaultResultMapper
extends AbstractResultMapper

Author:
Artur Konczak

Constructor Summary
DefaultResultMapper()
           
DefaultResultMapper(EntityMapper entityMapper)
           
DefaultResultMapper(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)
           
 
Method Summary
<T> T
mapResult(org.elasticsearch.action.get.GetResponse response, Class<T> clazz)
           
<T> LinkedList<T>
mapResults(org.elasticsearch.action.get.MultiGetResponse responses, Class<T> clazz)
           
<T> FacetedPage<T>
mapResults(org.elasticsearch.action.search.SearchResponse response, Class<T> clazz, Pageable pageable)
           
 
Methods inherited from class org.springframework.data.elasticsearch.core.AbstractResultMapper
getEntityMapper, mapEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResultMapper

public DefaultResultMapper()

DefaultResultMapper

public DefaultResultMapper(MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)

DefaultResultMapper

public DefaultResultMapper(EntityMapper entityMapper)
Method Detail

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)

Spring Data Elasticsearch

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.