Class SearchHitsImpl<T>

java.lang.Object
org.springframework.data.elasticsearch.core.SearchHitsImpl<T>
Type Parameters:
T - the result data class.
All Implemented Interfaces:
Iterable<SearchHit<T>>, Supplier<Stream<SearchHit<T>>>, SearchHits<T>, SearchScrollHits<T>, Streamable<SearchHit<T>>

public class SearchHitsImpl<T> extends Object implements SearchScrollHits<T>
Basic implementation of SearchScrollHits
Since:
4.0
Author:
Peter-Josef Meisch, Sascha Woo, Haibo Liu, Mohamed El Harrougui
  • Constructor Details

    • SearchHitsImpl

      public SearchHitsImpl(long totalHits, TotalHitsRelation totalHitsRelation, float maxScore, Duration executionDuration, @Nullable String scrollId, @Nullable String pointInTimeId, List<? extends SearchHit<T>> searchHits, @Nullable AggregationsContainer<?> aggregations, @Nullable Suggest suggest, @Nullable SearchShardStatistics searchShardStatistics)
      Parameters:
      totalHits - the number of total hits for the search
      totalHitsRelation - the relation , must not be null
      maxScore - the maximum score
      executionDuration - the execution duration it took to complete the request
      scrollId - the scroll id if available
      searchHits - must not be null
      aggregations - the aggregations if available
  • Method Details