public static class SourceFieldMapper.TypeParser extends Object implements MetadataFieldMapper.TypeParser
Mapper.TypeParser.ParserContext| Constructor and Description |
|---|
SourceFieldMapper.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.TypeParserparse in interface MetadataFieldMapper.TypeParserMapperParsingExceptionpublic MetadataFieldMapper getDefault(Settings indexSettings, MappedFieldType fieldType, String typeName)
MetadataFieldMapper.TypeParserMetadataFieldMapper to use, if nothing had to be parsed.getDefault in interface MetadataFieldMapper.TypeParserindexSettings - 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.