Package org.elasticsearch.index.mapper
Class FieldNamesFieldMapper.TypeParser
java.lang.Object
org.elasticsearch.index.mapper.FieldNamesFieldMapper.TypeParser
- All Implemented Interfaces:
Mapper.TypeParser
,MetadataFieldMapper.TypeParser
- Enclosing class:
- FieldNamesFieldMapper
public static class FieldNamesFieldMapper.TypeParser extends java.lang.Object implements MetadataFieldMapper.TypeParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.Mapper.TypeParser
Mapper.TypeParser.ParserContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENABLED_DEPRECATION_MESSAGE
-
Constructor Summary
Constructors Constructor Description TypeParser()
-
Method Summary
Modifier and Type Method Description MetadataFieldMapper
getDefault(MappedFieldType fieldType, Mapper.TypeParser.ParserContext context)
Get the defaultMetadataFieldMapper
to use, if nothing had to be parsed.MetadataFieldMapper.Builder<?,?>
parse(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> node, Mapper.TypeParser.ParserContext parserContext)
-
Field Details
-
ENABLED_DEPRECATION_MESSAGE
public static final java.lang.String ENABLED_DEPRECATION_MESSAGE- See Also:
- Constant Field Values
-
-
Constructor Details
-
TypeParser
public TypeParser()
-
-
Method Details
-
parse
public MetadataFieldMapper.Builder<?,?> parse(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException- Specified by:
parse
in interfaceMapper.TypeParser
- Specified by:
parse
in interfaceMetadataFieldMapper.TypeParser
- Throws:
MapperParsingException
-
getDefault
public MetadataFieldMapper getDefault(MappedFieldType fieldType, Mapper.TypeParser.ParserContext context)Description copied from interface:MetadataFieldMapper.TypeParser
Get the defaultMetadataFieldMapper
to use, if nothing had to be parsed.- Specified by:
getDefault
in interfaceMetadataFieldMapper.TypeParser
- Parameters:
fieldType
- the existing field type for this meta mapper on the current index or null if this is the first type being introducedcontext
- context that may be useful to build the field like analyzers
-