CompositeIndicesRequest
, Streamable
, Writeable
, TaskAwareRequest
public class ReindexRequest extends AbstractBulkIndexByScrollRequest<ReindexRequest> implements CompositeIndicesRequest
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
AUTO_SLICES, AUTO_SLICES_VALUE, SIZE_ALL_MATCHES
Constructor | Description |
---|---|
ReindexRequest() |
|
ReindexRequest(SearchRequest search,
IndexRequest destination) |
Modifier and Type | Method | Description |
---|---|---|
ReindexRequest |
forSlice(TaskId slicingTask,
SearchRequest slice,
int totalSlices) |
Build a new request for a slice of the parent request.
|
IndexRequest |
getDestination() |
|
RemoteInfo |
getRemoteInfo() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
protected ReindexRequest |
self() |
`this` cast to Self.
|
void |
setRemoteInfo(RemoteInfo remoteInfo) |
|
java.lang.String |
toString() |
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
createTask, getDescription, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getScrollTime, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setScroll, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards
doForSlice, getScript, searchToString, setScript
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newWriteableReader
setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public ReindexRequest()
public ReindexRequest(SearchRequest search, IndexRequest destination)
protected ReindexRequest self()
AbstractBulkByScrollRequest
self
in class AbstractBulkByScrollRequest<ReindexRequest>
public ActionRequestValidationException validate()
validate
in class AbstractBulkByScrollRequest<ReindexRequest>
public IndexRequest getDestination()
public void setRemoteInfo(RemoteInfo remoteInfo)
public RemoteInfo getRemoteInfo()
public ReindexRequest forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)
AbstractBulkByScrollRequest
forSlice
in class AbstractBulkByScrollRequest<ReindexRequest>
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class AbstractBulkIndexByScrollRequest<ReindexRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class AbstractBulkIndexByScrollRequest<ReindexRequest>
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object