public class ReindexRequest extends AbstractBulkIndexByScrollRequest<ReindexRequest> implements CompositeIndicesRequest
TransportRequest.EmptySIZE_ALL_MATCHESheaders| Constructor and Description |
|---|
ReindexRequest() |
ReindexRequest(SearchRequest search,
IndexRequest destination) |
| Modifier and Type | Method and Description |
|---|---|
IndexRequest |
getDestination() |
void |
readFrom(StreamInput in) |
protected ReindexRequest |
self()
`this` cast to Self.
|
List<? extends IndicesRequest> |
subRequests()
Accessor to get the underlying
IndicesRequests that this request wraps. |
String |
toString() |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
getScript, searchToString, setScriptcreateTask, getConsistency, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getSearchRequest, getSize, getTimeout, isAbortOnVersionConflict, isRefresh, setAbortOnVersionConflict, setConflicts, setConsistency, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setSize, setTimeoutgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic ReindexRequest()
public ReindexRequest(SearchRequest search, IndexRequest destination)
protected ReindexRequest self()
AbstractBulkByScrollRequestself in class AbstractBulkByScrollRequest<ReindexRequest>public ActionRequestValidationException validate()
validate in class AbstractBulkByScrollRequest<ReindexRequest>public IndexRequest getDestination()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class AbstractBulkIndexByScrollRequest<ReindexRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class AbstractBulkIndexByScrollRequest<ReindexRequest>IOExceptionpublic List<? extends IndicesRequest> subRequests()
IndicesRequests that this request wraps. Note that this method is not
accurate since it returns a prototype IndexRequest and not the actual requests that will be issued as part of the
execution of this request. Additionally, scripts can modify the underlying IndexRequest and change values such as the index,
type, IndicesOptions. In short - only use this for very course reasoning about the request.subRequests in interface CompositeIndicesRequestSearchRequest and the prototype IndexRequestCopyright © 2009–2017. All rights reserved.