java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.tasks.CancellableTask
org.elasticsearch.action.search.SearchTask
- All Implemented Interfaces:
Traceable
Task storing information about a currently running
SearchRequest
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.tasks.CancellableTask
CancellableTask.CancellationListener
Nested classes/interfaces inherited from class org.elasticsearch.tasks.Task
Task.Status
-
Field Summary
Fields inherited from class org.elasticsearch.tasks.Task
APM_TRACE_CONTEXT, HEADERS_TO_COPY, TRACE_ID, TRACE_PARENT, TRACE_PARENT_HTTP_HEADER, TRACE_START_TIME, TRACE_STATE, X_ELASTIC_PRODUCT_ORIGIN_HTTP_HEADER, X_OPAQUE_ID_HTTP_HEADER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Generates task descriptionfinal SearchProgressListener
Return theSearchProgressListener
attached to this task.final void
setProgressListener
(SearchProgressListener progressListener) Attach aSearchProgressListener
to this task.void
Methods inherited from class org.elasticsearch.tasks.CancellableTask
addListener, ensureNotCancelled, getReasonCancelled, isCancelled, notifyIfCancelled, onCancelled, shouldCancelChildrenOnCancellation
-
Constructor Details
-
SearchTask
-
-
Method Details
-
getDescription
Description copied from class:Task
Generates task description- Overrides:
getDescription
in classTask
-
setProgressListener
Attach aSearchProgressListener
to this task. -
getProgressListener
Return theSearchProgressListener
attached to this task. -
getSearchResponseMergerSupplier
- Returns:
- the Supplier of
SearchResponseMerger
attached to this task. Will be null for local-only search and cross-cluster searches with minimize_roundtrips=false.
-
setSearchResponseMergerSupplier
- Parameters:
supplier
- Attach a Supplier ofSearchResponseMerger
to this task. For use with CCS minimize_roundtrips=true
-