Package org.elasticsearch.index.reindex
Class ScrollableHitSource.Response
java.lang.Object
org.elasticsearch.index.reindex.ScrollableHitSource.Response
- Enclosing class:
- ScrollableHitSource
Response from each scroll batch.
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(boolean timedOut, List<ScrollableHitSource.SearchFailure> failures, long totalHits, List<? extends ScrollableHitSource.Hit> hits, String scrollId) -
Method Summary
Modifier and TypeMethodDescriptionWhere there any search failures?List<? extends ScrollableHitSource.Hit>getHits()The documents returned in this batch.The scroll id used to fetch the next set of documents.longWhat were the total number of documents matching the search?booleanDid this batch time out?
-
Constructor Details
-
Response
public Response(boolean timedOut, List<ScrollableHitSource.SearchFailure> failures, long totalHits, List<? extends ScrollableHitSource.Hit> hits, String scrollId)
-
-
Method Details
-
isTimedOut
public boolean isTimedOut()Did this batch time out? -
getFailures
Where there any search failures? -
getTotalHits
public long getTotalHits()What were the total number of documents matching the search? -
getHits
The documents returned in this batch. -
getScrollId
The scroll id used to fetch the next set of documents.
-