Class MapperTestCase.ParameterChecker

java.lang.Object
org.elasticsearch.index.mapper.MapperTestCase.ParameterChecker
Enclosing class:
MapperTestCase

public class MapperTestCase.ParameterChecker extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerConflictCheck(String param, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update)
    Register a check that a parameter update will cause a conflict, using the minimal mapping as a base
    void
    registerConflictCheck(String param, org.elasticsearch.xcontent.XContentBuilder init, org.elasticsearch.xcontent.XContentBuilder update)
    Register a check that a parameter update will cause a conflict
    void
    registerUpdateCheck(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update, Consumer<org.elasticsearch.index.mapper.FieldMapper> check)
    Register a check that a parameter can be updated, using the minimal mapping as a base
    void
    registerUpdateCheck(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> init, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update, Consumer<org.elasticsearch.index.mapper.FieldMapper> check)
    Register a check that a parameter can be updated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParameterChecker

      public ParameterChecker()
  • Method Details

    • registerUpdateCheck

      public void registerUpdateCheck(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update, Consumer<org.elasticsearch.index.mapper.FieldMapper> check) throws IOException
      Register a check that a parameter can be updated, using the minimal mapping as a base
      Parameters:
      update - a field builder applied on top of the minimal mapping
      check - a check that the updated parameter has been applied to the FieldMapper
      Throws:
      IOException
    • registerUpdateCheck

      public void registerUpdateCheck(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> init, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update, Consumer<org.elasticsearch.index.mapper.FieldMapper> check) throws IOException
      Register a check that a parameter can be updated
      Parameters:
      init - the initial mapping
      update - the updated mapping
      check - a check that the updated parameter has been applied to the FieldMapper
      Throws:
      IOException
    • registerConflictCheck

      public void registerConflictCheck(String param, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder,IOException> update) throws IOException
      Register 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 message
      update - a field builder applied on top of the minimal mapping
      Throws:
      IOException
    • registerConflictCheck

      public void registerConflictCheck(String param, org.elasticsearch.xcontent.XContentBuilder init, org.elasticsearch.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 message
      init - the initial mapping
      update - the updated mapping