public abstract class AbstractBulkByScrollRequestBuilder<Request extends AbstractBulkByScrollRequest<Request>,Self extends AbstractBulkByScrollRequestBuilder<Request,Self>> extends ActionRequestBuilder<Request,BulkByScrollResponse,Self>
action, client, request
Modifier | Constructor and Description |
---|---|
protected |
AbstractBulkByScrollRequestBuilder(ElasticsearchClient client,
Action<Request,BulkByScrollResponse,Self> action,
SearchRequestBuilder source,
Request request) |
Modifier and Type | Method and Description |
---|---|
Self |
abortOnVersionConflict(boolean abortOnVersionConflict)
Should we version conflicts cause the action to abort?
|
Self |
filter(QueryBuilder filter)
Set the query that will filter the source.
|
Self |
refresh(boolean refresh)
Call refresh on the indexes we've written to after the request ends?
|
protected abstract Self |
self() |
Self |
setMaxRetries(int maxRetries)
Total number of retries attempted for rejections.
|
Self |
setRequestsPerSecond(float requestsPerSecond)
Set the throttle for this request in sub-requests per second.
|
Self |
setRetryBackoffInitialTime(TimeValue retryBackoffInitialTime)
Initial delay after a rejection before retrying a bulk request.
|
Self |
setShouldStoreResult(boolean shouldStoreResult)
Should this task store its result after it has finished?
|
Self |
setSlices(int workers)
The number of slices this task should be divided into.
|
Self |
size(int size)
The maximum number of documents to attempt.
|
SearchRequestBuilder |
source()
The search used to find documents to process.
|
Self |
source(java.lang.String... indices)
Set the source indices.
|
Self |
timeout(TimeValue timeout)
Timeout to wait for the shards on to be available for each bulk request.
|
Self |
waitForActiveShards(ActiveShardCount activeShardCount)
The number of shard copies that must be active before proceeding with the write.
|
beforeExecute, execute, execute, get, get, get, request
protected AbstractBulkByScrollRequestBuilder(ElasticsearchClient client, Action<Request,BulkByScrollResponse,Self> action, SearchRequestBuilder source, Request request)
protected abstract Self self()
public SearchRequestBuilder source()
public Self source(java.lang.String... indices)
public Self filter(QueryBuilder filter)
public Self size(int size)
public Self abortOnVersionConflict(boolean abortOnVersionConflict)
public Self refresh(boolean refresh)
public Self timeout(TimeValue timeout)
public Self waitForActiveShards(ActiveShardCount activeShardCount)
ReplicationRequest.waitForActiveShards(ActiveShardCount)
for details.public Self setRetryBackoffInitialTime(TimeValue retryBackoffInitialTime)
public Self setMaxRetries(int maxRetries)
public Self setRequestsPerSecond(float requestsPerSecond)
Float.POSITIVE_INFINITY
means set no throttle and that is the
default. Throttling is done between batches, as we start the next scroll requests. That way we can increase the scroll's timeout to
make sure that it contains any time that we might wait.public Self setShouldStoreResult(boolean shouldStoreResult)
public Self setSlices(int workers)