java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
org.elasticsearch.index.mapper.RootObjectMapper
- All Implemented Interfaces:
Iterable<Mapper>
,ToXContent
,ToXContentFragment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Dynamic, ObjectMapper.MergeResult, ObjectMapper.Subobjects, ObjectMapper.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.SourceKeepMode
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.ObjectMapper
CONTENT_TYPE, dynamic, enabled, mappers, sourceKeepMode, SUB_OBJECTS_AUTO_FEATURE_FLAG, subobjects
Fields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_FEATURE, SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAM
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionprotected MapperMergeContext
createChildContext
(MapperMergeContext mapperMergeContext, String name) boolean
Public APIprotected void
doXContent
(XContentBuilder builder, ToXContent.Params params) Public APIPublic APIint
The total number of fields as defined in the mapping.protected boolean
isRoot()
merge
(Mapper mergeWith, MapperMergeContext parentMergeContext) Return the merge ofmergeWith
into this.newBuilder
(IndexVersion indexVersionCreated) boolean
Public APIstatic RootObjectMapper.Builder
Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
dynamic, findParentMapper, fullPath, getMapper, isEnabled, isNested, iterator, serializeMappers, sourceKeepMode, subobjects, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, leafName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Method Details
-
newBuilder
- Overrides:
newBuilder
in classObjectMapper
- Returns:
- a Builder that will produce an empty ObjectMapper with the same configuration as this one
-
dateDetection
public boolean dateDetection()Public API -
numericDetection
public boolean numericDetection()Public API -
dynamicDateTimeFormatters
Public API -
dynamicTemplates
Public API -
createChildContext
- Overrides:
createChildContext
in classObjectMapper
-
merge
Description copied from class:Mapper
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified.- Overrides:
merge
in classObjectMapper
-
doXContent
- Overrides:
doXContent
in classObjectMapper
- Throws:
IOException
-
isRoot
protected boolean isRoot()- Overrides:
isRoot
in classObjectMapper
-
parse
public static RootObjectMapper.Builder parse(String name, Map<String, Object> node, MappingParserContext parserContext) throws MapperParsingException- Throws:
MapperParsingException
-
getTotalFieldsCount
public int getTotalFieldsCount()Description copied from class:Mapper
The total number of fields as defined in the mapping. Defines how this mapper counts towardsMapperService.INDEX_MAPPING_TOTAL_FIELDS_LIMIT_SETTING
.- Overrides:
getTotalFieldsCount
in classObjectMapper
-