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