Package org.elasticsearch.index.mapper
Class MetadataFieldMapper.FixedTypeParser
java.lang.Object
org.elasticsearch.index.mapper.MetadataFieldMapper.FixedTypeParser
- All Implemented Interfaces:
Mapper.TypeParser
,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
ConstructorDescriptionFixedTypeParser(Function<MappingParserContext,MetadataFieldMapper> mapperParser)
-
Method Summary
Modifier and TypeMethodDescriptiongetDefault(MappingParserContext parserContext)
Get the defaultMetadataFieldMapper
to use, if nothing had to be parsed.
-
Constructor Details
-
FixedTypeParser
-
-
Method Details
-
parse
public MetadataFieldMapper.Builder parse(String name, Map<String,Object> node, MappingParserContext parserContext) throws MapperParsingException- Specified by:
parse
in interfaceMapper.TypeParser
- Specified by:
parse
in interfaceMetadataFieldMapper.TypeParser
- Throws:
MapperParsingException
-
getDefault
Description copied from interface:MetadataFieldMapper.TypeParser
Get the defaultMetadataFieldMapper
to use, if nothing had to be parsed.- Specified by:
getDefault
in interfaceMetadataFieldMapper.TypeParser
- Parameters:
parserContext
- context that may be useful to build the field like analyzers
-