public class AsyncDeleteByQueryAction extends AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>
AbstractAsyncBulkByScrollAction.DeleteRequestWrapper, AbstractAsyncBulkByScrollAction.IndexRequestWrapper, AbstractAsyncBulkByScrollAction.OpType, AbstractAsyncBulkByScrollAction.RequestWrapper<Self extends <any>>, AbstractAsyncBulkByScrollAction.ScriptApplierclusterState, logger, mainRequest, scriptService, task, threadPool, worker| Constructor and Description |
|---|
AsyncDeleteByQueryAction(BulkByScrollTask task,
Logger logger,
ParentTaskAssigningClient client,
ThreadPool threadPool,
DeleteByQueryRequest request,
ScriptService scriptService,
ClusterState clusterState,
<any> 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, wrappublic AsyncDeleteByQueryAction(BulkByScrollTask task,
Logger logger,
ParentTaskAssigningClient client,
ThreadPool threadPool,
DeleteByQueryRequest request,
ScriptService scriptService,
ClusterState clusterState,
<any> listener)
protected boolean needsSourceDocumentVersions()
AbstractAsyncBulkByScrollActionneedsSourceDocumentVersions in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>protected boolean accept(ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollActionaccept in class AbstractAsyncBulkByScrollAction<DeleteByQueryRequest>protected AbstractAsyncBulkByScrollAction.RequestWrapper<DeleteRequest> buildRequest(ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollActionAbstractAsyncBulkByScrollAction.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>