public static class UidFieldMapper.TypeParser extends Object implements MetadataFieldMapper.TypeParser
Mapper.TypeParser.ParserContext
Constructor and Description |
---|
UidFieldMapper.TypeParser() |
Modifier and Type | Method and Description |
---|---|
MetadataFieldMapper |
getDefault(Settings indexSettings,
MappedFieldType fieldType,
String typeName)
Get the default
MetadataFieldMapper to use, if nothing had to be parsed. |
MetadataFieldMapper.Builder<?,?> |
parse(String name,
Map<String,Object> node,
Mapper.TypeParser.ParserContext parserContext) |
public MetadataFieldMapper.Builder<?,?> parse(String name, Map<String,Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException
parse
in interface Mapper.TypeParser
parse
in interface MetadataFieldMapper.TypeParser
MapperParsingException
public MetadataFieldMapper getDefault(Settings indexSettings, MappedFieldType fieldType, String typeName)
MetadataFieldMapper.TypeParser
MetadataFieldMapper
to use, if nothing had to be parsed.getDefault
in interface MetadataFieldMapper.TypeParser
indexSettings
- the index-level settingsfieldType
- null if this is the first root mapper on this index, the existing
fieldType for this index otherwisetypeName
- the name of the type that this mapper will be used onCopyright © 2009–2017. All rights reserved.