public class DeleteIndexRequest extends AcknowledgedRequest<DeleteIndexRequest> implements IndicesRequest.Replaceable
Requests.deleteIndexRequest(String)
.TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
DeleteIndexRequest() |
DeleteIndexRequest(java.lang.String... indices)
Constructs a new delete index request for the specified indices.
|
DeleteIndexRequest(java.lang.String index)
Constructs a new delete index request for the specified index.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
indices()
The index to delete.
|
DeleteIndexRequest |
indices(java.lang.String... indices)
Sets the indices that the action relates to.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
DeleteIndexRequest |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
createTask, getDescription, getParentTask, setParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public DeleteIndexRequest()
public DeleteIndexRequest(java.lang.String index)
index
- The index to delete. Use "_all" to delete all indices.public DeleteIndexRequest(java.lang.String... indices)
indices
- The indices to delete. Use "_all" to delete all indices.public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public DeleteIndexRequest indicesOptions(IndicesOptions indicesOptions)
public ActionRequestValidationException validate()
validate
in class ActionRequest<DeleteIndexRequest>
public DeleteIndexRequest indices(java.lang.String... indices)
IndicesRequest.Replaceable
indices
in interface IndicesRequest.Replaceable
public java.lang.String[] indices()
indices
in interface IndicesRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<DeleteIndexRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<DeleteIndexRequest>
java.io.IOException