public abstract class AbstractBulkIndexByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
extends org.elasticsearch.action.bulk.byscroll.AbstractBulkByScrollRequest<Self>
| 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) |
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) |
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, forSlice, getDescription, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, self, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards, validategetParentTask, setParentTaskremoteAddress, remoteAddresspublic 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)
doForSlice in class org.elasticsearch.action.bulk.byscroll.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 org.elasticsearch.action.bulk.byscroll.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 org.elasticsearch.action.bulk.byscroll.AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>java.io.IOExceptionprotected void searchToString(java.lang.StringBuilder b)
searchToString in class org.elasticsearch.action.bulk.byscroll.AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>