Package org.opensearch.index.mapper
Class RootObjectMapper
java.lang.Object
org.opensearch.index.mapper.Mapper
org.opensearch.index.mapper.ObjectMapper
org.opensearch.index.mapper.RootObjectMapper
- All Implemented Interfaces:
Cloneable
,Iterable<Mapper>
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentFragment
The root object mapper for a document
- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for the root objectstatic class
Default parameters for root objectstatic class
Type parser for the root objectNested classes/interfaces inherited from class org.opensearch.index.mapper.ObjectMapper
ObjectMapper.Dynamic, ObjectMapper.Nested
Nested classes/interfaces inherited from class org.opensearch.index.mapper.Mapper
Mapper.BuilderContext
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.opensearch.index.mapper.ObjectMapper
CONTENT_TYPE, NESTED_CONTENT_TYPE
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
doMerge
(ObjectMapper mergeWith, MapperService.MergeReason reason) protected void
doXContent
(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) findTemplate
(ContentPath path, String name, DynamicTemplate.XContentFieldType matchType) findTemplateBuilder
(ParseContext context, String name, DateFormatter dateFormatter) findTemplateBuilder
(ParseContext context, String name, DynamicTemplate.XContentFieldType matchType) void
Removes redundant root includes inObjectMapper.Nested
trees to avoid duplicate fields on the root mapper whenisIncludeInRoot
istrue
for a node that is itself included into a parent node, for which eitherisIncludeInRoot
istrue
or which is transitively included in root by a chain of nodes withisIncludeInParent
returningtrue
.mappingUpdate
(Mapper mapper) Build a mapping update with the provided sub mapping update.merge
(Mapper mergeWith, MapperService.MergeReason reason) boolean
Methods inherited from class org.opensearch.index.mapper.ObjectMapper
clone, dynamic, fullPath, getMapper, getParentObjectMapper, isEnabled, iterator, merge, name, nested, nestedTypeFilter, nestedTypePath, parentObjectMapperAreNested, putMapper, toXContent, toXContent, typeName, validate
Methods inherited from class org.opensearch.index.mapper.Mapper
hasIndexCreated, simpleName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Method Details
-
fixRedundantIncludes
public void fixRedundantIncludes()Removes redundant root includes inObjectMapper.Nested
trees to avoid duplicate fields on the root mapper whenisIncludeInRoot
istrue
for a node that is itself included into a parent node, for which eitherisIncludeInRoot
istrue
or which is transitively included in root by a chain of nodes withisIncludeInParent
returningtrue
. -
mappingUpdate
Description copied from class:ObjectMapper
Build a mapping update with the provided sub mapping update.- Overrides:
mappingUpdate
in classObjectMapper
-
dateDetection
public boolean dateDetection() -
numericDetection
public boolean numericDetection() -
dynamicDateTimeFormatters
-
dynamicTemplates
-
findTemplateBuilder
public Mapper.Builder findTemplateBuilder(ParseContext context, String name, DynamicTemplate.XContentFieldType matchType) -
findTemplateBuilder
public Mapper.Builder findTemplateBuilder(ParseContext context, String name, DateFormatter dateFormatter) -
findTemplate
public DynamicTemplate findTemplate(ContentPath path, String name, DynamicTemplate.XContentFieldType matchType) -
merge
- Overrides:
merge
in classObjectMapper
-
doMerge
- Overrides:
doMerge
in classObjectMapper
-
doXContent
protected void doXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws IOException - Overrides:
doXContent
in classObjectMapper
- Throws:
IOException
-