Package org.elasticsearch.index.reindex
Class ClientScrollableHitSource
java.lang.Object
org.elasticsearch.index.reindex.ScrollableHitSource
org.elasticsearch.index.reindex.ClientScrollableHitSource
A scrollable source of hits from a Client instance.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.index.reindex.ScrollableHitSourceScrollableHitSource.AsyncResponse, ScrollableHitSource.BasicHit, ScrollableHitSource.Hit, ScrollableHitSource.Response, ScrollableHitSource.SearchFailure
- 
Field SummaryFields inherited from class org.elasticsearch.index.reindex.ScrollableHitSourcebackoffPolicy, countSearchRetry, fail, logger, threadPool
- 
Constructor SummaryConstructorsConstructorDescriptionClientScrollableHitSource(org.apache.logging.log4j.Logger logger, BackoffPolicy backoffPolicy, ThreadPool threadPool, Runnable countSearchRetry, Consumer<ScrollableHitSource.AsyncResponse> onResponse, Consumer<Exception> fail, ParentTaskAssigningClient client, SearchRequest firstSearchRequest)
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCalled after the process has been totally finished to clean up any resources the process needed like remote connections.voidclearScroll(String scrollId, Runnable onCompletion)Called to clear a scroll id.voiddoStart(RejectAwareActionListener<ScrollableHitSource.Response> searchListener)protected voiddoStartNextScroll(String scrollId, org.elasticsearch.core.TimeValue extraKeepAlive, RejectAwareActionListener<ScrollableHitSource.Response> searchListener)Methods inherited from class org.elasticsearch.index.reindex.ScrollableHitSourceclose, setScroll, start
- 
Constructor Details- 
ClientScrollableHitSourcepublic ClientScrollableHitSource(org.apache.logging.log4j.Logger logger, BackoffPolicy backoffPolicy, ThreadPool threadPool, Runnable countSearchRetry, Consumer<ScrollableHitSource.AsyncResponse> onResponse, Consumer<Exception> fail, ParentTaskAssigningClient client, SearchRequest firstSearchRequest)
 
- 
- 
Method Details- 
doStart- Specified by:
- doStartin class- ScrollableHitSource
 
- 
doStartNextScrollprotected void doStartNextScroll(String scrollId, org.elasticsearch.core.TimeValue extraKeepAlive, RejectAwareActionListener<ScrollableHitSource.Response> searchListener)- Specified by:
- doStartNextScrollin class- ScrollableHitSource
 
- 
clearScrollDescription copied from class:ScrollableHitSourceCalled to clear a scroll id.- Specified by:
- clearScrollin class- ScrollableHitSource
- Parameters:
- scrollId- the id to clear
- onCompletion- implementers must call this after completing the clear whether they are successful or not
 
- 
cleanupDescription copied from class:ScrollableHitSourceCalled after the process has been totally finished to clean up any resources the process needed like remote connections.- Specified by:
- cleanupin class- ScrollableHitSource
- Parameters:
- onCompletion- implementers must call this after completing the cleanup whether they are successful or not
 
 
-