public class DeleteMappingRequest extends AcknowledgedRequest<DeleteMappingRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceableDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
DeleteMappingRequest(String... indices)
Constructs a new delete mapping request against one or more indices.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
indices()
The indices the mappings will be removed from.
|
DeleteMappingRequest |
indices(String[] indices)
Sets the indices this delete mapping operation will execute on.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
DeleteMappingRequest |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in) |
String[] |
types()
The mapping types.
|
DeleteMappingRequest |
types(String... types)
The type of the mappings to remove.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic DeleteMappingRequest(String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequest<DeleteMappingRequest>public DeleteMappingRequest indices(String[] indices)
indices in interface IndicesRequest.Replaceablepublic String[] indices()
indices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic DeleteMappingRequest indicesOptions(IndicesOptions indicesOptions)
public String[] types()
public DeleteMappingRequest types(String... types)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeOperationRequest<DeleteMappingRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeOperationRequest<DeleteMappingRequest>IOExceptionCopyright © 2009–2016. All rights reserved.