public class DeleteIndexRequest extends MasterNodeRequest<DeleteIndexRequest> implements IndicesRequest.Replaceable
Requests.deleteIndexRequest(String).TransportRequest.EmptyIndicesRequest.ReplaceableDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
DeleteIndexRequest() |
DeleteIndexRequest(String... indices)
Constructs a new delete index request for the specified indices.
|
DeleteIndexRequest(String index)
Constructs a new delete index request for the specified index.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
indices()
The index to delete.
|
DeleteIndexRequest |
indices(String... indices) |
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
DeleteIndexRequest |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in) |
TimeValue |
timeout()
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
DeleteIndexRequest |
timeout(String timeout)
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
DeleteIndexRequest |
timeout(TimeValue timeout)
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic DeleteIndexRequest()
public DeleteIndexRequest(String index)
index - The index to delete. Use "_all" to delete all indices.public DeleteIndexRequest(String... indices)
indices - The indices to delete. Use "_all" to delete all indices.public IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic DeleteIndexRequest indicesOptions(IndicesOptions indicesOptions)
public ActionRequestValidationException validate()
validate in class ActionRequest<DeleteIndexRequest>public DeleteIndexRequest indices(String... indices)
indices in interface IndicesRequest.Replaceablepublic String[] indices()
indices in interface IndicesRequestpublic TimeValue timeout()
public DeleteIndexRequest timeout(TimeValue timeout)
public DeleteIndexRequest timeout(String timeout)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeRequest<DeleteIndexRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeRequest<DeleteIndexRequest>IOExceptionCopyright © 2009–2017. All rights reserved.