Modifier and Type | Method and Description |
---|---|
static <T> AggregatedPage<SearchHit<T>> |
page(SearchHits<T> searchHits,
Pageable pageable)
Deprecated.
since 4.0, will be removed in a future version.
|
static <T> SearchPage<T> |
searchPageFor(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 objects@Deprecated public static <T> AggregatedPage<SearchHit<T>> page(SearchHits<T> searchHits, Pageable pageable)
searchHits,
- must not be null.pageable,
- must not be null.public static <T> SearchPage<T> searchPageFor(SearchHits<T> searchHits, @Nullable Pageable pageable)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.