Package org.elasticsearch.index.mapper
Class MappingParser
java.lang.Object
org.elasticsearch.index.mapper.MappingParser
Parser for
Mapping provided in CompressedXContent format-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckNoRemainingFields(String fieldName, Map<?,?> fieldNodeMap)Verify that there are no remaining fields in the provided map that contained mapped fieldsstatic voidcheckNoRemainingFields(Map<?,?> fieldNodeMap, String message)Verify that there are no remaining fields in the provided map that contained mapped fieldsparse(String type, CompressedXContent source)parse(String type, CompressedXContent source, String defaultSource)
-
Method Details
-
checkNoRemainingFields
Verify that there are no remaining fields in the provided map that contained mapped fields- Parameters:
fieldName- the name of the field that is being parsedfieldNodeMap- the map of fields
-
checkNoRemainingFields
Verify that there are no remaining fields in the provided map that contained mapped fields- Parameters:
fieldNodeMap- the map of fieldsmessage- the error message to be returned in case the provided map contains one or more fields
-
parse
public Mapping parse(@Nullable String type, CompressedXContent source) throws MapperParsingException- Throws:
MapperParsingException
-
parse
public Mapping parse(@Nullable String type, CompressedXContent source, String defaultSource) throws MapperParsingException- Throws:
MapperParsingException
-