Package org.elasticsearch.index.mapper
Class Mapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
- All Implemented Interfaces:
Iterable<Mapper>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
FieldAliasMapper,FieldMapper,ObjectMapper
-
Nested Class Summary
Nested ClassesNested 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 interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MapperReturn the merge ofmergeWithinto this.abstract Stringname()Returns the canonical name which uniquely identifies the mapper against other mappers in a type.Returns the simple name, which identifies this mapper against other mappers at the same level in the mappers hierarchy TODO: make this protected once Mapper and FieldMapper are merged togetherabstract StringtypeName()Returns a name representing the type of this mapper.abstract voidvalidate(MappingLookup mappers)Validate any cross-field references made by this mapperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Mapper
-
-
Method Details
-
simpleName
Returns the simple name, which identifies this mapper against other mappers at the same level in the mappers hierarchy TODO: make this protected once Mapper and FieldMapper are merged together -
name
Returns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
Returns a name representing the type of this mapper. -
merge
Return the merge ofmergeWithinto this. BoththisandmergeWithwill be left unmodified. -
validate
Validate any cross-field references made by this mapper- Parameters:
mappers- aMappingLookupthat can produce references to other mappers
-