public abstract class AbstractAsyncBulkIndexByScrollAction<Request extends AbstractBulkByScrollRequest<Request>> extends AbstractAsyncBulkByScrollAction<Request>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAsyncBulkIndexByScrollAction.DeleteRequestWrapper
RequestWrapper for DeleteRequest |
static class |
AbstractAsyncBulkIndexByScrollAction.IndexRequestWrapper
RequestWrapper for IndexRequest |
static class |
AbstractAsyncBulkIndexByScrollAction.OpType |
class |
AbstractAsyncBulkIndexByScrollAction.ScriptApplier
Apply a
Script to a RequestWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.cluster.ClusterState |
clusterState |
protected org.elasticsearch.script.ScriptService |
scriptService |
logger, mainRequest, task, threadPool| Constructor and Description |
|---|
AbstractAsyncBulkIndexByScrollAction(WorkingBulkByScrollTask task,
org.apache.logging.log4j.Logger logger,
org.elasticsearch.client.ParentTaskAssigningClient client,
org.elasticsearch.threadpool.ThreadPool threadPool,
Request mainRequest,
org.elasticsearch.action.ActionListener<BulkIndexByScrollResponse> listener,
org.elasticsearch.script.ScriptService scriptService,
org.elasticsearch.cluster.ClusterState clusterState) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ScrollableHitSource.Hit doc)
Used to accept or ignore a search hit.
|
protected org.elasticsearch.action.bulk.BulkRequest |
buildBulk(java.lang.Iterable<? extends ScrollableHitSource.Hit> docs) |
protected abstract org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> |
buildRequest(ScrollableHitSource.Hit doc)
Build the
RequestWrapper for a single search hit. |
protected java.util.function.BiFunction<org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?>,ScrollableHitSource.Hit,org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?>> |
buildScriptApplier()
Build the
BiFunction to apply to all RequestWrapper. |
protected org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> |
copyMetadata(org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> request,
ScrollableHitSource.Hit doc)
Copies the metadata from a hit to the request.
|
protected void |
copyRouting(org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> request,
java.lang.String routing)
Copy the routing from a search hit to the request.
|
buildResponse, buildScrollableResultSource, needsSourceDocumentVersions, startprotected final org.elasticsearch.script.ScriptService scriptService
protected final org.elasticsearch.cluster.ClusterState clusterState
public AbstractAsyncBulkIndexByScrollAction(WorkingBulkByScrollTask task, org.apache.logging.log4j.Logger logger, org.elasticsearch.client.ParentTaskAssigningClient client, org.elasticsearch.threadpool.ThreadPool threadPool, Request mainRequest, org.elasticsearch.action.ActionListener<BulkIndexByScrollResponse> listener, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.cluster.ClusterState clusterState)
protected java.util.function.BiFunction<org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?>,ScrollableHitSource.Hit,org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?>> buildScriptApplier()
BiFunction to apply to all RequestWrapper.protected org.elasticsearch.action.bulk.BulkRequest buildBulk(java.lang.Iterable<? extends ScrollableHitSource.Hit> docs)
buildBulk in class AbstractAsyncBulkByScrollAction<Request extends AbstractBulkByScrollRequest<Request>>protected boolean accept(ScrollableHitSource.Hit doc)
protected abstract org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> buildRequest(ScrollableHitSource.Hit doc)
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.protected org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> copyMetadata(org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> request,
ScrollableHitSource.Hit doc)
protected void copyRouting(org.elasticsearch.index.reindex.AbstractAsyncBulkIndexByScrollAction.RequestWrapper<?> request,
java.lang.String routing)