public abstract class AbstractBulkByScrollRequest<Self extends AbstractBulkByScrollRequest<Self>> extends ActionRequest<Self>
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_ALL_MATCHES |
headers| Constructor and Description |
|---|
AbstractBulkByScrollRequest() |
AbstractBulkByScrollRequest(SearchRequest source) |
| Modifier and Type | Method and Description |
|---|---|
Task |
createTask(long id,
String type,
String action) |
WriteConsistencyLevel |
getConsistency()
Consistency level for write requests.
|
int |
getMaxRetries()
Total number of retries attempted for rejections.
|
float |
getRequestsPerSecond()
The throttle for this request in sub-requests per second.
|
TimeValue |
getRetryBackoffInitialTime()
Initial delay after a rejection before retrying request.
|
SearchRequest |
getSearchRequest()
The search request that matches the documents to process.
|
int |
getSize()
Maximum number of processed documents.
|
TimeValue |
getTimeout()
Timeout to wait for the shards on to be available for each bulk request?
|
boolean |
isAbortOnVersionConflict()
Should version conflicts cause aborts? Defaults to false.
|
boolean |
isRefresh()
Call refresh on the indexes we've written to after the request ends?
|
void |
readFrom(StreamInput in) |
protected void |
searchToString(StringBuilder b)
Append a short description of the search request to a StringBuilder.
|
protected abstract Self |
self()
`this` cast to Self.
|
Self |
setAbortOnVersionConflict(boolean abortOnVersionConflict)
Should version conflicts cause aborts? Defaults to false.
|
void |
setConflicts(String conflicts)
Sets abortOnVersionConflict based on REST-friendly names.
|
Self |
setConsistency(WriteConsistencyLevel consistency)
Consistency level for write requests.
|
Self |
setMaxRetries(int maxRetries)
Set the total number of retries attempted for rejections.
|
Self |
setRefresh(boolean refresh)
Call refresh on the indexes we've written to after the request ends?
|
Self |
setRequestsPerSecond(float requestsPerSecond)
Set the throttle for this request in sub-requests per second.
|
Self |
setRetryBackoffInitialTime(TimeValue retryBackoffInitialTime)
Set the initial delay after a rejection before retrying request.
|
Self |
setSize(int size)
Maximum number of processed documents.
|
Self |
setTimeout(TimeValue timeout)
Timeout to wait for the shards on to be available for each bulk request?
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final int SIZE_ALL_MATCHES
public AbstractBulkByScrollRequest()
public AbstractBulkByScrollRequest(SearchRequest source)
protected abstract Self self()
public ActionRequestValidationException validate()
validate in class ActionRequest<Self extends AbstractBulkByScrollRequest<Self>>public int getSize()
public Self setSize(int size)
public boolean isAbortOnVersionConflict()
public Self setAbortOnVersionConflict(boolean abortOnVersionConflict)
public void setConflicts(String conflicts)
public SearchRequest getSearchRequest()
public boolean isRefresh()
public Self setRefresh(boolean refresh)
public TimeValue getTimeout()
public Self setTimeout(TimeValue timeout)
public WriteConsistencyLevel getConsistency()
public Self setConsistency(WriteConsistencyLevel consistency)
public TimeValue getRetryBackoffInitialTime()
public Self setRetryBackoffInitialTime(TimeValue retryBackoffInitialTime)
public int getMaxRetries()
public Self setMaxRetries(int maxRetries)
public float getRequestsPerSecond()
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 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 Task createTask(long id, String type, String action)
createTask in class TransportRequestpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<Self extends AbstractBulkByScrollRequest<Self>>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<Self extends AbstractBulkByScrollRequest<Self>>IOExceptionprotected void searchToString(StringBuilder b)
Copyright © 2009–2017. All rights reserved.