Package org.elasticsearch.index.mapper
Class Mapper
org.elasticsearch.index.mapper.Mapper
- All Implemented Interfaces:
<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
FieldAliasMapper
,FieldMapper
,ObjectMapper
public abstract class Mapper
extends
implements org.elasticsearch.common.xcontent.ToXContentFragment, <Mapper>
-
Nested Class Summary
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 interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionsimpleName)
-
Method Summary
Modifier and TypeMethodDescriptionabstract Mapper
Return the merge ofmergeWith
into this.abstract
name()
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
typeName()
Returns a name representing the type of this mapper.abstract void
validate(MappingLookup mappers)
Validate any cross-field references made by this mapperMethods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface java.lang.
, ,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
Mapper
public Mapper( simpleName)
-
-
Method Details
-
simpleName
public final 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
public abstract name()Returns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
public abstract typeName()Returns a name representing the type of this mapper. -
merge
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified. -
validate
Validate any cross-field references made by this mapper- Parameters:
mappers
- aMappingLookup
that can produce references to other mappers
-