Package org.elasticsearch.index.mapper
Class MetadataMapperTestCase.ParameterChecker
java.lang.Object
org.elasticsearch.index.mapper.MetadataMapperTestCase.ParameterChecker
- Enclosing class:
- MetadataMapperTestCase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerConflictCheck(String param, org.elasticsearch.common.xcontent.XContentBuilder init, org.elasticsearch.common.xcontent.XContentBuilder update)
Register a check that a parameter update will cause a conflictvoid
registerConflictCheck(String param, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.common.xcontent.XContentBuilder,IOException> update)
Register a check that a parameter update will cause a conflict, using the minimal mapping as a basevoid
registerUpdateCheck(org.elasticsearch.common.xcontent.XContentBuilder init, org.elasticsearch.common.xcontent.XContentBuilder update, Consumer<org.elasticsearch.index.mapper.DocumentMapper> check)
-
Constructor Details
-
ParameterChecker
public ParameterChecker()
-
-
Method Details
-
registerConflictCheck
public void registerConflictCheck(String param, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.common.xcontent.XContentBuilder,IOException> update) throws IOExceptionRegister a check that a parameter update will cause a conflict, using the minimal mapping as a base- Parameters:
param
- the parameter name, expected to appear in the error messageupdate
- a field builder applied on top of the minimal mapping- Throws:
IOException
-
registerConflictCheck
public void registerConflictCheck(String param, org.elasticsearch.common.xcontent.XContentBuilder init, org.elasticsearch.common.xcontent.XContentBuilder update)Register a check that a parameter update will cause a conflict- Parameters:
param
- the parameter name, expected to appear in the error messageinit
- the initial mappingupdate
- the updated mapping
-
registerUpdateCheck
public void registerUpdateCheck(org.elasticsearch.common.xcontent.XContentBuilder init, org.elasticsearch.common.xcontent.XContentBuilder update, Consumer<org.elasticsearch.index.mapper.DocumentMapper> check)
-