public interface ResultsMapper extends SearchResultMapper, GetResultMapper, MultiGetResultMapper
| Modifier and Type | Method and Description |
|---|---|
EntityMapper |
getEntityMapper() |
default <T> T |
mapEntity(org.elasticsearch.index.get.GetResult getResult,
Class<T> type)
Map a single
GetResult to an instance of the given type. |
default <T> T |
mapEntity(org.elasticsearch.search.SearchHit searchHit,
Class<T> type)
Map a single
SearchHit to an instance of the given type. |
default <T> T |
mapEntity(String source,
Class<T> clazz) |
mapResultsmapResultmapResultsEntityMapper getEntityMapper()
@Nullable
default <T> T mapEntity(org.elasticsearch.index.get.GetResult getResult,
Class<T> type)
GetResult to an instance of the given type.T - getResult - must not be null.type - must not be null.is empty.@Nullable
default <T> T mapEntity(org.elasticsearch.search.SearchHit searchHit,
Class<T> type)
SearchHit to an instance of the given type.T - searchHit - must not be null.type - must not be null.SearchHit does not have a source.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.