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,
org.elasticsearch.search.aggregations.Aggregations aggregations) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.search.aggregations.Aggregations |
getAggregations() |
float |
getMaxScore() |
String |
getScrollId() |
SearchHit<T> |
getSearchHit(int index) |
List<SearchHit<T>> |
getSearchHits() |
long |
getTotalHits() |
TotalHitsRelation |
getTotalHitsRelation() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasAggregations, hasSearchHits, 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
org.elasticsearch.search.aggregations.Aggregations aggregations)
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 org.elasticsearch.search.aggregations.Aggregations getAggregations()
getAggregations in interface SearchHits<T>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.