java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
- All Implemented Interfaces:
Cloneable
,Iterable<Mapper>
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
NestedObjectMapper
,RootObjectMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static enum
static class
Nested 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_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMapper
clone()
protected MapperBuilderContext
createChildContext
(MapperBuilderContext mapperBuilderContext, String name) protected void
doMerge
(ObjectMapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) protected void
doXContent
(XContentBuilder builder, ToXContent.Params params) final ObjectMapper.Dynamic
dynamic()
fullPath()
boolean
boolean
isNested()
iterator()
merge
(Mapper mergeWith, MapperBuilderContext mapperBuilderContext) Return the merge ofmergeWith
into this.merge
(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.newBuilder
(Version indexVersionCreated) protected void
serializeMappers
(XContentBuilder builder, ToXContent.Params params) protected void
final boolean
Create aSourceLoader.SyntheticFieldLoader
to populate synthetic source.syntheticFieldLoader
(Stream<Mapper> extra) toXContent
(XContentBuilder builder, ToXContent.Params params) typeName()
Returns a name representing the type of this mapper.void
validate
(MappingLookup mappers) Validate any cross-field references made by this mapperMethods inherited from class org.elasticsearch.index.mapper.Mapper
internFieldName, simpleName, toString
Methods inherited from class java.lang.Object
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
-
Field Details
-
CONTENT_TYPE
- See Also:
-
enabled
-
subobjects
-
dynamic
-
mappers
-
-
Method Details
-
clone
-
newBuilder
- Returns:
- a Builder that will produce an empty ObjectMapper with the same configuration as this one
-
name
Description copied from class:Mapper
Returns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
Description copied from class:Mapper
Returns 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:Mapper
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified. -
validate
Description copied from class:Mapper
Validate any cross-field references made by this mapper- Specified by:
validate
in classMapper
- Parameters:
mappers
- aMappingLookup
that can produce references to other mappers
-
createChildContext
protected MapperBuilderContext createChildContext(MapperBuilderContext mapperBuilderContext, String name) -
merge
public ObjectMapper merge(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) -
doMerge
protected void doMerge(ObjectMapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
serializeMappers
protected void serializeMappers(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
doXContent
- Throws:
IOException
-
syntheticFieldLoader
-
syntheticFieldLoader
Description copied from class:Mapper
Create aSourceLoader.SyntheticFieldLoader
to populate synthetic source.- Overrides:
syntheticFieldLoader
in classMapper
-
startSyntheticField
- Throws:
IOException
-