Streamable, Writeable, TaskAwareRequestReindexRequest, UpdateByQueryRequestpublic abstract class AbstractBulkIndexByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>> extends AbstractBulkByScrollRequest<Self>
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>AUTO_SLICES, AUTO_SLICES_VALUE, SIZE_ALL_MATCHES| Modifier | Constructor | Description |
|---|---|---|
|
AbstractBulkIndexByScrollRequest() |
Constructor for deserialization.
|
protected |
AbstractBulkIndexByScrollRequest(SearchRequest searchRequest,
boolean setDefaults) |
Constructor for actual use.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected Self |
doForSlice(Self request,
TaskId slicingTask,
int totalSlices) |
Setup a clone of this request with the information needed to process a slice of it.
|
Script |
getScript() |
Script to modify the documents before they are processed.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
protected void |
searchToString(java.lang.StringBuilder b) |
Append a short description of the search request to a StringBuilder.
|
Self |
setScript(Script script) |
Script to modify the documents before they are processed.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
createTask, forSlice, getDescription, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getScrollTime, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, self, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setScroll, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReadersetParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic AbstractBulkIndexByScrollRequest()
protected AbstractBulkIndexByScrollRequest(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 Script getScript()
public Self setScript(@Nullable Script script)
protected Self doForSlice(Self request, TaskId slicingTask, int totalSlices)
AbstractBulkByScrollRequestdoForSlice in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>java.io.IOExceptionprotected void searchToString(java.lang.StringBuilder b)
AbstractBulkByScrollRequestsearchToString in class AbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>