public abstract class AbstractBulkByScrollRequestBuilder<Request extends AbstractBulkByScrollRequest<Request>,Response extends ActionResponse,Self extends AbstractBulkByScrollRequestBuilder<Request,Response,Self>> extends ActionRequestBuilder<Request,Response,Self>
action, client, request| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBulkByScrollRequestBuilder(ElasticsearchClient client,
Action<Request,Response,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?
|
protected Request |
beforeExecute(Request request) |
Self |
consistency(WriteConsistencyLevel consistency)
Consistency level for write requests.
|
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?
|
Request |
request() |
protected abstract Self |
self() |
Self |
setRequestsPerSecond(float requestsPerSecond)
Set the throttle for this request in sub-requests per second.
|
Self |
size(int size)
The maximum number of documents to attempt.
|
SearchRequestBuilder |
source()
The search used to find documents to process.
|
Self |
source(String... indices)
Set the source indices.
|
Self |
timeout(TimeValue timeout)
Timeout to wait for the shards on to be available for each bulk request.
|
protected AbstractBulkByScrollRequestBuilder(ElasticsearchClient client, Action<Request,Response,Self> action, SearchRequestBuilder source, Request request)
protected abstract Self self()
public SearchRequestBuilder source()
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 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 consistency(WriteConsistencyLevel consistency)
public Request request()
request in class ActionRequestBuilder<Request extends AbstractBulkByScrollRequest<Request>,Response extends ActionResponse,Self extends AbstractBulkByScrollRequestBuilder<Request,Response,Self>>protected Request beforeExecute(Request request)
beforeExecute in class ActionRequestBuilder<Request extends AbstractBulkByScrollRequest<Request>,Response extends ActionResponse,Self extends AbstractBulkByScrollRequestBuilder<Request,Response,Self>>Copyright © 2009–2017. All rights reserved.