Interface SearchScrollResult<H>
-
- Type Parameters:
H- The type of hits.
- All Known Implementing Classes:
SimpleSearchScrollResult
public interface SearchScrollResult<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasHits()Returns true if this scrolling result contains some index hits.List<H>hits()booleantimedOut()Durationtook()
-
-
-
Method Detail
-
hasHits
boolean hasHits()
Returns true if this scrolling result contains some index hits.Notice that it is possible for this method to return
truewhilehits()returns an empty list, e.g.: if matching entities could not be found in the database.This methods is mainly useful as a stop condition in loops.
- Returns:
- if there are still some index result hits.
-
hits
List<H> hits()
- Returns:
- The hits of this scrolling result as a
Listcontaining one element for each matched entity.
-
timedOut
boolean timedOut()
- Returns:
- whether or not a timeout occurred processing the request.
-
-