Package org.elasticsearch.index.mapper
Class RootObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
org.elasticsearch.index.mapper.RootObjectMapper
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public class RootObjectMapper extends ObjectMapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RootObjectMapper.Builder
static class
RootObjectMapper.Defaults
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Dynamic, ObjectMapper.Nested
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.ObjectMapper
CONTENT_TYPE, NESTED_CONTENT_TYPE
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and Type Method Description protected ObjectMapper
clone()
protected void
doMerge(ObjectMapper mergeWith, MapperService.MergeReason reason)
protected void
doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
DynamicTemplate
findTemplate(ContentPath path, java.lang.String name, DynamicTemplate.XContentFieldType matchType)
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
.RootObjectMapper
merge(Mapper mergeWith, MapperService.MergeReason reason)
Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
dynamic, fullPath, getMapper, isEnabled, iterator, merge, name, nested, nestedTypeFilter, nestedTypePathAsString, putMapper, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
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.elasticsearch.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
. -
clone
- Overrides:
clone
in classObjectMapper
-
findTemplate
public DynamicTemplate findTemplate(ContentPath path, java.lang.String name, DynamicTemplate.XContentFieldType matchType) -
merge
- Overrides:
merge
in classObjectMapper
-
doMerge
- Overrides:
doMerge
in classObjectMapper
-
doXContent
protected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Overrides:
doXContent
in classObjectMapper
- Throws:
java.io.IOException
-