public class AsyncDeleteByQueryAction extends AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>
AbstractAsyncBulkByScrollAction.DeleteRequestWrapper, AbstractAsyncBulkByScrollAction.IndexRequestWrapper, AbstractAsyncBulkByScrollAction.OpType, AbstractAsyncBulkByScrollAction.RequestWrapper<Self extends DocWriteRequest<?>>, AbstractAsyncBulkByScrollAction.ScriptApplier
clusterState, logger, mainRequest, scriptService, task, threadPool
Constructor and Description |
---|
AsyncDeleteByQueryAction(WorkingBulkByScrollTask task,
org.apache.logging.log4j.Logger logger,
ParentTaskAssigningClient client,
ThreadPool threadPool,
DeleteByQueryRequest request,
ScriptService scriptService,
ClusterState clusterState,
ActionListener<BulkByScrollResponse> listener) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(ScrollableHitSource.Hit doc)
Used to accept or ignore a search hit.
|
protected AbstractAsyncBulkByScrollAction.RequestWrapper<DeleteRequest> |
buildRequest(ScrollableHitSource.Hit doc)
Build the
AbstractAsyncBulkByScrollAction.RequestWrapper for a single search hit. |
protected AbstractAsyncBulkByScrollAction.RequestWrapper<?> |
copyMetadata(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request,
ScrollableHitSource.Hit doc)
Overrides the parent's implementation is much more Update/Reindex oriented and so also copies things like timestamp/ttl which we
don't care for a deletion.
|
protected boolean |
needsSourceDocumentVersions()
Does this operation need the versions of the source documents?
|
buildResponse, buildScriptApplier, buildScrollableResultSource, copyRouting, finishHim, finishHim, start, wrap
public AsyncDeleteByQueryAction(WorkingBulkByScrollTask task, org.apache.logging.log4j.Logger logger, ParentTaskAssigningClient client, ThreadPool threadPool, DeleteByQueryRequest request, ScriptService scriptService, ClusterState clusterState, ActionListener<BulkByScrollResponse> listener)
protected boolean needsSourceDocumentVersions()
AbstractAsyncBulkByScrollAction
needsSourceDocumentVersions
in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>
protected boolean accept(ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollAction
accept
in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>
protected AbstractAsyncBulkByScrollAction.RequestWrapper<DeleteRequest> buildRequest(ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollAction
AbstractAsyncBulkByScrollAction.RequestWrapper
for a single search hit. This shouldn't handle
metadata or scripting. That will be handled by copyMetadata and
apply functions that can be overridden.buildRequest
in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>
protected AbstractAsyncBulkByScrollAction.RequestWrapper<?> copyMetadata(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, ScrollableHitSource.Hit doc)
copyMetadata
in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>