org.elasticsearch.action.admin.indices.mapping.delete
Class DeleteMappingRequest

java.lang.Object
  extended by org.elasticsearch.action.support.master.MasterNodeOperationRequest
      extended by org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequest
All Implemented Interfaces:
ActionRequest, Streamable

public class DeleteMappingRequest
extends MasterNodeOperationRequest


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
 
Constructor Summary
DeleteMappingRequest(String... indices)
          Constructs a new put mapping request against one or more indices.
 
Method Summary
 String[] indices()
          The indices the mappings will be put.
 DeleteMappingRequest indices(String[] indices)
          Sets the indices this put mapping operation will execute on.
 void readFrom(StreamInput in)
           
 String type()
          The mapping type.
 DeleteMappingRequest type(String mappingType)
          The type of the mappings to remove.
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
listenerThreaded, listenerThreaded, masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.