public class AsyncDeleteByQueryAction extends AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>
AbstractAsyncBulkByScrollAction.DeleteRequestWrapper, AbstractAsyncBulkByScrollAction.IndexRequestWrapper, AbstractAsyncBulkByScrollAction.OpType, AbstractAsyncBulkByScrollAction.RequestWrapper<Self extends org.elasticsearch.action.DocWriteRequest<Self>>, AbstractAsyncBulkByScrollAction.ScriptApplierclusterState, logger, mainRequest, scriptService, task, threadPool, worker| Constructor | Description |
|---|---|
AsyncDeleteByQueryAction(org.elasticsearch.index.reindex.BulkByScrollTask task,
org.apache.logging.log4j.Logger logger,
org.elasticsearch.client.ParentTaskAssigningClient client,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.index.reindex.DeleteByQueryRequest request,
org.elasticsearch.script.ScriptService scriptService,
org.elasticsearch.cluster.ClusterState clusterState,
org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse> listener) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
accept(org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc) |
Used to accept or ignore a search hit.
|
protected AbstractAsyncBulkByScrollAction.RequestWrapper<org.elasticsearch.action.delete.DeleteRequest> |
buildRequest(org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc) |
Build the
AbstractAsyncBulkByScrollAction.RequestWrapper for a single search hit. |
protected AbstractAsyncBulkByScrollAction.RequestWrapper<?> |
copyMetadata(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request,
org.elasticsearch.index.reindex.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(org.elasticsearch.index.reindex.BulkByScrollTask task,
org.apache.logging.log4j.Logger logger,
org.elasticsearch.client.ParentTaskAssigningClient client,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.index.reindex.DeleteByQueryRequest request,
org.elasticsearch.script.ScriptService scriptService,
org.elasticsearch.cluster.ClusterState clusterState,
org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse> listener)
protected boolean needsSourceDocumentVersions()
AbstractAsyncBulkByScrollActionneedsSourceDocumentVersions in class AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>protected boolean accept(org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollActionaccept in class AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>protected AbstractAsyncBulkByScrollAction.RequestWrapper<org.elasticsearch.action.delete.DeleteRequest> buildRequest(org.elasticsearch.index.reindex.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<org.elasticsearch.index.reindex.DeleteByQueryRequest>protected AbstractAsyncBulkByScrollAction.RequestWrapper<?> copyMetadata(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc)
copyMetadata in class AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>