public interface SearchHitWrapper
SearchHit, allows to get returned hit as an object| Modifier and Type | Interface and Description |
|---|---|
static interface |
SearchHitWrapper.SearchHitReader |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject() |
<T> T |
getObject(Class<T> type) |
org.elasticsearch.search.SearchHit |
getSearchHit() |
org.elasticsearch.search.SearchHit getSearchHit()
@CheckForNull Object getObject()
null if TypeMapping.read(SearchHit)
returns null@CheckForNull <T> T getObject(Class<T> type)
ClassCastException - if returned object is not of given typeCopyright © 2013 Molindo GmbH. All Rights Reserved.