Class MapperBuilderContext

java.lang.Object
org.elasticsearch.index.mapper.MapperBuilderContext

public class MapperBuilderContext extends Object
Holds context for building Mapper objects from their Builders
  • Field Details

    • ROOT

      public static final MapperBuilderContext ROOT
      The root context, to be used when building a tree of mappers
  • Method Details

    • forPath

      public static MapperBuilderContext forPath(ContentPath path)
    • createChildContext

      public MapperBuilderContext createChildContext(String name)
      Creates a new MapperBuilderContext that is a child of this context
      Parameters:
      name - the name of the child context
      Returns:
      a new MapperBuilderContext with this context as its parent
    • buildFullName

      public final String buildFullName(String name)
      Builds the full name of the field, taking into account parent objects