public abstract class AbstractAsyncBulkByScrollAction<Request extends AbstractBulkByScrollRequest<Request>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.logging.log4j.Logger |
logger |
protected Request |
mainRequest
The request for this action.
|
protected BulkByScrollTask |
task |
protected org.elasticsearch.threadpool.ThreadPool |
threadPool |
| Constructor and Description |
|---|
AbstractAsyncBulkByScrollAction(BulkByScrollTask 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) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.elasticsearch.action.bulk.BulkRequest |
buildBulk(java.lang.Iterable<? extends ScrollableHitSource.Hit> docs) |
protected BulkIndexByScrollResponse |
buildResponse(org.elasticsearch.common.unit.TimeValue took,
java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> indexingFailures,
java.util.List<ScrollableHitSource.SearchFailure> searchFailures,
boolean timedOut)
Build the response for reindex actions.
|
protected ScrollableHitSource |
buildScrollableResultSource(org.elasticsearch.action.bulk.BackoffPolicy backoffPolicy) |
protected abstract boolean |
needsSourceDocumentVersions()
Does this operation need the versions of the source documents?
|
void |
start()
Start the action by firing the initial search request.
|
protected final org.apache.logging.log4j.Logger logger
protected final BulkByScrollTask task
protected final org.elasticsearch.threadpool.ThreadPool threadPool
protected final Request extends AbstractBulkByScrollRequest<Request> mainRequest
request variables all representing child
requests of this mainRequest.public AbstractAsyncBulkByScrollAction(BulkByScrollTask 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)
protected abstract boolean needsSourceDocumentVersions()
protected abstract org.elasticsearch.action.bulk.BulkRequest buildBulk(java.lang.Iterable<? extends ScrollableHitSource.Hit> docs)
protected ScrollableHitSource buildScrollableResultSource(org.elasticsearch.action.bulk.BackoffPolicy backoffPolicy)
protected BulkIndexByScrollResponse buildResponse(org.elasticsearch.common.unit.TimeValue took, java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> indexingFailures, java.util.List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
public void start()