Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class MetadataFieldMapper.FixedTypeParser
java.lang.Object
org.elasticsearch.index.mapper.MetadataFieldMapper.FixedTypeParser
- All Implemented Interfaces:
MetadataFieldMapper.TypeParser
- Enclosing class:
MetadataFieldMapper
public static class MetadataFieldMapper.FixedTypeParser
extends Object
implements MetadataFieldMapper.TypeParser
A type parser for an unconfigurable metadata field.
-
Constructor Summary
ConstructorsConstructorDescriptionFixedTypeParser(Function<MappingParserContext, MetadataFieldMapper> mapperParser) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultBuilder(MappingParserContext parserContext) Get a defaultMetadataFieldMapper.Builderfor this metadata field, using the given parser context.
-
Constructor Details
-
FixedTypeParser
-
-
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
-