public class DeleteMappingRequest extends AcknowledgedRequest<DeleteMappingRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
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, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public DeleteMappingRequest(String... indices)
public ActionRequestValidationException validate()
validate
in class ActionRequest<DeleteMappingRequest>
public DeleteMappingRequest indices(String[] indices)
indices
in interface IndicesRequest.Replaceable
public String[] indices()
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public DeleteMappingRequest indicesOptions(IndicesOptions indicesOptions)
public String[] types()
public DeleteMappingRequest types(String... types)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeOperationRequest<DeleteMappingRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest<DeleteMappingRequest>
IOException
Copyright © 2009–2015. All rights reserved.