Class RemoteScrollableHitSource
java.lang.Object
org.opensearch.index.reindex.ScrollableHitSource
org.opensearch.index.reindex.remote.RemoteScrollableHitSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.index.reindex.ScrollableHitSource
ScrollableHitSource.AsyncResponse, ScrollableHitSource.BasicHit, ScrollableHitSource.Hit, ScrollableHitSource.Response, ScrollableHitSource.SearchFailure -
Field Summary
Fields inherited from class org.opensearch.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, org.opensearch.core.common.bytes.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, TimeValue extraKeepAlive, RejectAwareActionListener<ScrollableHitSource.Response> searchListener) Methods inherited from class org.opensearch.index.reindex.ScrollableHitSource
close, setScroll, start
-
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, org.opensearch.core.common.bytes.BytesReference query, SearchRequest searchRequest)
-
-
Method Details
-
doStart
- Specified by:
doStartin classScrollableHitSource
-
doStartNextScroll
protected void doStartNextScroll(String scrollId, TimeValue extraKeepAlive, RejectAwareActionListener<ScrollableHitSource.Response> searchListener) - Specified by:
doStartNextScrollin classScrollableHitSource
-
clearScroll
- Specified by:
clearScrollin classScrollableHitSource
-
cleanup
- Specified by:
cleanupin classScrollableHitSource
-