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.ScriptApplier
clusterState, logger, mainRequest, scriptService, task, threadPool, worker
Constructor and 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 and 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, wrap
public 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()
AbstractAsyncBulkByScrollAction
needsSourceDocumentVersions
in class AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>
protected boolean accept(org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc)
AbstractAsyncBulkByScrollAction
accept
in class AbstractAsyncBulkByScrollAction<org.elasticsearch.index.reindex.DeleteByQueryRequest>
protected AbstractAsyncBulkByScrollAction.RequestWrapper<org.elasticsearch.action.delete.DeleteRequest> buildRequest(org.elasticsearch.index.reindex.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<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>