IndicesRequest, IndicesRequest.Replaceable, AckedRequest, Streamable, Writeable, TaskAwareRequestpublic class DeleteIndexRequest extends AcknowledgedRequest<DeleteIndexRequest> implements IndicesRequest.Replaceable
Requests.deleteIndexRequest(String).IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
DeleteIndexRequest() |
|
DeleteIndexRequest(java.lang.String index) |
Constructs a new delete index request for the specified index.
|
DeleteIndexRequest(java.lang.String... indices) |
Constructs a new delete index request for the specified indices.
|
| Modifier and Type | Method | 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.
|
masterNodeTimeoutackTimeout, timeout, timeout, timeoutgetShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic 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()
IndicesRequestindicesOptions in interface IndicesRequestpublic DeleteIndexRequest indicesOptions(IndicesOptions indicesOptions)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic DeleteIndexRequest indices(java.lang.String... indices)
IndicesRequest.Replaceableindices in interface IndicesRequest.Replaceablepublic java.lang.String[] indices()
indices in interface IndicesRequestpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AcknowledgedRequest<DeleteIndexRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AcknowledgedRequest<DeleteIndexRequest>java.io.IOException