java.lang.Iterable<Mapper>
, ToXContent
, ToXContentFragment
FieldMapper
, ObjectMapper
public abstract class Mapper extends java.lang.Object implements ToXContentFragment, java.lang.Iterable<Mapper>
Modifier and Type | Class | Description |
---|---|---|
static class |
Mapper.Builder<T extends Mapper.Builder,Y extends Mapper> |
|
static class |
Mapper.BuilderContext |
|
static interface |
Mapper.TypeParser |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor | Description |
---|---|
Mapper(java.lang.String simpleName) |
Modifier and Type | Method | Description |
---|---|---|
abstract Mapper |
merge(Mapper mergeWith,
boolean updateAllTypes) |
Return the merge of
mergeWith into this. |
abstract java.lang.String |
name() |
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
|
java.lang.String |
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
|
abstract Mapper |
updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType) |
Update the field type of this mapper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toXContent
isFragment
public final java.lang.String simpleName()
public abstract java.lang.String name()
public abstract Mapper merge(Mapper mergeWith, boolean updateAllTypes)
mergeWith
into this.
Both this
and mergeWith
will be left unmodified.public abstract Mapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)