public abstract class AbstractBulkIndexByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>> extends AbstractBulkByScrollRequest<Self>
SIZE_ALL_MATCHES| Modifier | Constructor and Description |
|---|---|
|
AbstractBulkIndexByScrollRequest()
Constructor for deserialization.
|
protected |
AbstractBulkIndexByScrollRequest(org.elasticsearch.action.search.SearchRequest searchRequest,
boolean setDefaults)
Constructor for actual use.
|
| Modifier and Type | Method and Description |
|---|---|
protected Self |
doForSlice(Self request,
org.elasticsearch.tasks.TaskId slicingTask)
Setup a clone of this request with the information needed to process a slice of it.
|
org.elasticsearch.script.Script |
getScript()
Script to modify the documents before they are processed.
|
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
protected void |
searchToString(java.lang.StringBuilder b)
Append a short description of the search request to a StringBuilder.
|
Self |
setScript(org.elasticsearch.script.Script script)
Script to modify the documents before they are processed.
|
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
createTask, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, self, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards, validategetDescription, getParentTask, setParentTask, setParentTaskpublic AbstractBulkIndexByScrollRequest()
protected AbstractBulkIndexByScrollRequest(org.elasticsearch.action.search.SearchRequest searchRequest,
boolean setDefaults)
searchRequest - the search request to execute to get the documents to processsetDefaults - should this request set the defaults on the search request? Usually set to true but leave it false to support
request slicingpublic org.elasticsearch.script.Script getScript()
public Self setScript(@Nullable org.elasticsearch.script.Script script)
protected Self doForSlice(Self request, org.elasticsearch.tasks.TaskId slicingTask)
AbstractBulkByScrollRequestdoForSlice in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>public void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in interface org.elasticsearch.common.io.stream.StreamablereadFrom in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>java.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.StreamablewriteTo in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>java.io.IOExceptionprotected void searchToString(java.lang.StringBuilder b)
AbstractBulkByScrollRequestsearchToString in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>