org.elasticsearch.action.admin.indices.mapping.delete
Class DeleteMappingRequest
java.lang.Object
org.elasticsearch.action.support.master.MasterNodeOperationRequest
org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class DeleteMappingRequest
- extends MasterNodeOperationRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteMappingRequest
public DeleteMappingRequest(String... indices)
- Constructs a new put mapping request against one or more indices. If nothing is set then
it will be executed against all indices.
validate
public ActionRequestValidationException validate()
indices
public DeleteMappingRequest indices(String[] indices)
- Sets the indices this put mapping operation will execute on.
indices
public String[] indices()
- The indices the mappings will be put.
type
public String type()
- The mapping type.
type
public DeleteMappingRequest type(String mappingType)
- The type of the mappings to remove.
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class MasterNodeOperationRequest
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class MasterNodeOperationRequest
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.