Interface MappingRequestValidator
-
public interface MappingRequestValidator
A validator that validates aPutMappingRequest
before executing it.
-
-
Method Summary
Modifier and Type Method Description java.lang.Exception
validateRequest(PutMappingRequest request, ClusterState state, Index[] indices)
Validates a given put mapping request with its associated concrete indices and the current state.
-
-
-
Method Detail
-
validateRequest
java.lang.Exception validateRequest(PutMappingRequest request, ClusterState state, Index[] indices)
Validates a given put mapping request with its associated concrete indices and the current state.- Parameters:
request
- the request to validatestate
- the current cluster stateindices
- the concrete indices that associated with the given put mapping request- Returns:
- a non-null exception indicates a reason that the given request should be aborted; otherwise returns null.
-
-