Modifier and Type | Method and Description |
---|---|
static <T> AggregatedPage<SearchHit<T>> |
page(SearchHits<T> searchHits,
Pageable pageable)
|
static Object |
unwrapSearchHits(Object result)
unwraps the data contained in a SearchHit for different types containing SearchHits if possible
|
public static Object unwrapSearchHits(Object result)
result
- the object, list, page or whatever containing SearchHit objectspublic static <T> AggregatedPage<SearchHit<T>> page(SearchHits<T> searchHits, Pageable pageable)
searchHits,
- must not be null.pageable,
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.