java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
- All Implemented Interfaces:
Iterable<Mapper>,ToXContent,ToXContentFragment
- Direct Known Subclasses:
NestedObjectMapper,PassThroughObjectMapper,RootObjectMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumprotected static final recordstatic classNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionprotected MapperMergeContextcreateChildContext(MapperMergeContext mapperMergeContext, String name) protected voiddoXContent(XContentBuilder builder, ToXContent.Params params) final ObjectMapper.Dynamicdynamic()fullPath()intThe total number of fields as defined in the mapping.booleanbooleanisNested()iterator()merge(Mapper mergeWith, MapperMergeContext mapperMergeContext) Return the merge ofmergeWithinto this.merge(Mapper mergeWith, MapperService.MergeReason reason, MapperMergeContext parentMergeContext) name()Returns the canonical name which uniquely identifies the mapper against other mappers in a type.newBuilder(IndexVersion indexVersionCreated) protected voidserializeMappers(XContentBuilder builder, ToXContent.Params params) protected voidfinal booleanCreate aSourceLoader.SyntheticFieldLoaderto populate synthetic source.syntheticFieldLoader(Stream<Mapper> extra) toXContent(XContentBuilder builder, ToXContent.Params params) typeName()Returns a name representing the type of this mapper.voidvalidate(MappingLookup mappers) Validate any cross-field references made by this mapperMethods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, simpleName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
-
enabled
-
subobjects
-
dynamic
-
mappers
-
-
Method Details
-
getTotalFieldsCount
public int getTotalFieldsCount()Description copied from class:MapperThe total number of fields as defined in the mapping. Defines how this mapper counts towardsMapperService.INDEX_MAPPING_TOTAL_FIELDS_LIMIT_SETTING.- Specified by:
getTotalFieldsCountin classMapper
-
newBuilder
- Returns:
- a Builder that will produce an empty ObjectMapper with the same configuration as this one
-
name
Description copied from class:MapperReturns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
Description copied from class:MapperReturns a name representing the type of this mapper. -
isEnabled
public boolean isEnabled() -
isNested
public boolean isNested() -
getMapper
-
iterator
-
fullPath
-
dynamic
-
subobjects
public final boolean subobjects() -
merge
Description copied from class:MapperReturn the merge ofmergeWithinto this. BoththisandmergeWithwill be left unmodified. -
validate
Description copied from class:MapperValidate any cross-field references made by this mapper- Specified by:
validatein classMapper- Parameters:
mappers- aMappingLookupthat can produce references to other mappers
-
createChildContext
-
merge
public ObjectMapper merge(Mapper mergeWith, MapperService.MergeReason reason, MapperMergeContext parentMergeContext) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
serializeMappers
protected void serializeMappers(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
doXContent
- Throws:
IOException
-
syntheticFieldLoader
-
syntheticFieldLoader
Description copied from class:MapperCreate aSourceLoader.SyntheticFieldLoaderto populate synthetic source.- Overrides:
syntheticFieldLoaderin classMapper
-
startSyntheticField
- Throws:
IOException
-