T - the result data class.public class SearchHitsImpl<T> extends Object implements SearchScrollHits<T>
SearchScrollHits| Constructor and Description |
|---|
SearchHitsImpl(long totalHits,
TotalHitsRelation totalHitsRelation,
float maxScore,
String scrollId,
List<? extends SearchHit<T>> searchHits,
AggregationsContainer<?> aggregations,
Suggest suggest) |
| Modifier and Type | Method and Description |
|---|---|
AggregationsContainer<?> |
getAggregations() |
float |
getMaxScore() |
String |
getScrollId() |
SearchHit<T> |
getSearchHit(int index) |
List<SearchHit<T>> |
getSearchHits() |
Suggest |
getSuggest() |
long |
getTotalHits() |
TotalHitsRelation |
getTotalHitsRelation() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasAggregations, hasSearchHits, hasSuggest, iteratorand, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliteratorpublic SearchHitsImpl(long totalHits,
TotalHitsRelation totalHitsRelation,
float maxScore,
@Nullable
String scrollId,
List<? extends SearchHit<T>> searchHits,
@Nullable
AggregationsContainer<?> aggregations,
@Nullable
Suggest suggest)
totalHits - the number of total hits for the searchtotalHitsRelation - the relation TotalHitsRelation, must not be nullmaxScore - the maximum scorescrollId - the scroll id if availablesearchHits - must not be nullaggregations - the aggregations if availablepublic long getTotalHits()
getTotalHits in interface SearchHits<T>public TotalHitsRelation getTotalHitsRelation()
getTotalHitsRelation in interface SearchHits<T>public float getMaxScore()
getMaxScore in interface SearchHits<T>@Nullable public String getScrollId()
getScrollId in interface SearchScrollHits<T>public List<SearchHit<T>> getSearchHits()
getSearchHits in interface SearchHits<T>SearchHits.public SearchHit<T> getSearchHit(int index)
getSearchHit in interface SearchHits<T>index - position in List.SearchHit at position {index}@Nullable public AggregationsContainer<?> getAggregations()
getAggregations in interface SearchHits<T>@Nullable public Suggest getSuggest()
getSuggest in interface SearchHits<T>Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.