Package org.elasticsearch.index.mapper
Class ObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
RootObjectMapper
public class ObjectMapper extends Mapper implements java.lang.Cloneable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectMapper.Builder
static class
ObjectMapper.Defaults
static class
ObjectMapper.Dynamic
static class
ObjectMapper.Nested
static class
ObjectMapper.TypeParser
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 Modifier and Type Field Description static java.lang.String
CONTENT_TYPE
static java.lang.String
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)
ObjectMapper.Dynamic
dynamic()
java.lang.String
fullPath()
Mapper
getMapper(java.lang.String field)
boolean
isEnabled()
java.util.Iterator<Mapper>
iterator()
ObjectMapper
merge(Mapper mergeWith)
Return the merge ofmergeWith
into this.ObjectMapper
merge(Mapper mergeWith, MapperService.MergeReason reason)
java.lang.String
name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.ObjectMapper.Nested
nested()
org.apache.lucene.search.Query
nestedTypeFilter()
java.lang.String
nestedTypePathAsString()
protected void
putMapper(Mapper mapper)
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
java.lang.String
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
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
-
Field Details
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE- See Also:
- Constant Field Values
-
NESTED_CONTENT_TYPE
public static final java.lang.String NESTED_CONTENT_TYPE- See Also:
- Constant Field Values
-
-
Method Details
-
clone
- Overrides:
clone
in classjava.lang.Object
-
name
public java.lang.String name()Description copied from class:Mapper
Returns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
public java.lang.String typeName()Description copied from class:Mapper
Returns a name representing the type of this mapper. -
isEnabled
public boolean isEnabled() -
getMapper
-
nested
-
nestedTypeFilter
public org.apache.lucene.search.Query nestedTypeFilter() -
putMapper
-
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<Mapper>
-
fullPath
public java.lang.String fullPath() -
nestedTypePathAsString
public java.lang.String nestedTypePathAsString() -
dynamic
-
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
-
merge
-
doMerge
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
doXContent
protected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Throws:
java.io.IOException
-