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 SummaryConstructorsConstructorDescriptionFixedTypeParser(Function<MappingParserContext,MetadataFieldMapper> mapperParser)
- 
Method SummaryModifier and TypeMethodDescriptiongetDefault(MappingParserContext parserContext)Get the defaultMetadataFieldMapperto use, if nothing had to be parsed.
- 
Constructor Details- 
FixedTypeParser
 
- 
- 
Method Details- 
parsepublic MetadataFieldMapper.Builder parse(String name, Map<String,Object> node, MappingParserContext parserContext) throws MapperParsingException- Specified by:
- parsein interface- Mapper.TypeParser
- Specified by:
- parsein interface- MetadataFieldMapper.TypeParser
- Throws:
- MapperParsingException
 
- 
getDefaultDescription copied from interface:MetadataFieldMapper.TypeParserGet the defaultMetadataFieldMapperto use, if nothing had to be parsed.- Specified by:
- getDefaultin interface- MetadataFieldMapper.TypeParser
- Parameters:
- parserContext- context that may be useful to build the field like analyzers
 
 
-