Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class MetadataFieldMapper.ConfigurableTypeParser
java.lang.Object
org.elasticsearch.index.mapper.MetadataFieldMapper.ConfigurableTypeParser
- All Implemented Interfaces:
MetadataFieldMapper.TypeParser
- Enclosing class:
MetadataFieldMapper
public static class MetadataFieldMapper.ConfigurableTypeParser
extends Object
implements MetadataFieldMapper.TypeParser
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurableTypeParser(Function<MappingParserContext, MetadataFieldMapper.Builder> builderFunction) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultBuilder(MappingParserContext parserContext) Get a defaultMetadataFieldMapper.Builderfor this metadata field, using the given parser context.
-
Constructor Details
-
ConfigurableTypeParser
public ConfigurableTypeParser(Function<MappingParserContext, MetadataFieldMapper.Builder> builderFunction)
-
-
Method Details
-
parse
public MetadataFieldMapper.Builder parse(String name, Map<String, Object> node, MappingParserContext parserContext) throws MapperParsingException- Specified by:
parsein interfaceMetadataFieldMapper.TypeParser- Throws:
MapperParsingException
-
getDefaultBuilder
Description copied from interface:MetadataFieldMapper.TypeParserGet a defaultMetadataFieldMapper.Builderfor this metadata field, using the given parser context. Returns null if this metadata field is not applicable for the current index.- Specified by:
getDefaultBuilderin interfaceMetadataFieldMapper.TypeParser
-