Package org.elasticsearch.reindex.remote
Class RemoteScrollableHitSource
java.lang.Object
org.elasticsearch.index.reindex.ScrollableHitSource
org.elasticsearch.reindex.remote.RemoteScrollableHitSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.reindex.ScrollableHitSource
ScrollableHitSource.AsyncResponse, ScrollableHitSource.BasicHit, ScrollableHitSource.Hit, ScrollableHitSource.Response, ScrollableHitSource.SearchFailure -
Field Summary
Fields inherited from class org.elasticsearch.index.reindex.ScrollableHitSource
backoffPolicy, countSearchRetry, fail, logger, threadPool -
Constructor Summary
ConstructorsConstructorDescriptionRemoteScrollableHitSource(org.apache.logging.log4j.Logger logger, BackoffPolicy backoffPolicy, ThreadPool threadPool, Runnable countSearchRetry, Consumer<ScrollableHitSource.AsyncResponse> onResponse, Consumer<Exception> fail, RestClient client, BytesReference query, SearchRequest searchRequest) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidclearScroll(String scrollId, Runnable onCompletion) protected 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.ScrollableHitSource
close, setScroll, start, startNextScroll
-
Constructor Details
-
RemoteScrollableHitSource
public RemoteScrollableHitSource(org.apache.logging.log4j.Logger logger, BackoffPolicy backoffPolicy, ThreadPool threadPool, Runnable countSearchRetry, Consumer<ScrollableHitSource.AsyncResponse> onResponse, Consumer<Exception> fail, RestClient client, BytesReference query, SearchRequest searchRequest)
-
-
Method Details
-
doStart
- Specified by:
doStartin classScrollableHitSource
-
doStartNextScroll
protected void doStartNextScroll(String scrollId, org.elasticsearch.core.TimeValue extraKeepAlive, RejectAwareActionListener<ScrollableHitSource.Response> searchListener) - Specified by:
doStartNextScrollin classScrollableHitSource
-
clearScroll
- Specified by:
clearScrollin classScrollableHitSource
-
cleanup
- Specified by:
cleanupin classScrollableHitSource
-