Class SearchHitsImpl<T>
java.lang.Object
io.vanslog.spring.data.meilisearch.core.SearchHitsImpl<T>
- All Implemented Interfaces:
SearchHits<T>,Iterable<SearchHit<T>>,Supplier<Stream<SearchHit<T>>>,Streamable<SearchHit<T>>
-
Constructor Summary
ConstructorsConstructorDescriptionSearchHitsImpl(Duration executionDuration, List<? extends SearchHit<T>> searchHits) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.vanslog.spring.data.meilisearch.core.SearchHits
hasSearchHits, iterator
-
Constructor Details
-
SearchHitsImpl
-
-
Method Details
-
getExecutionDuration
- Specified by:
getExecutionDurationin interfaceSearchHits<T>- Returns:
- the execution duration it took to complete the request
-
getSearchHit
- Specified by:
getSearchHitin interfaceSearchHits<T>- Parameters:
index- position in List.- Returns:
- the
SearchHitat position {index}
-
getSearchHits
- Specified by:
getSearchHitsin interfaceSearchHits<T>- Returns:
- the contained
SearchHits.
-
toString
-