public abstract class Mapper extends java.lang.Object implements ToXContent, java.lang.Iterable<Mapper>
| Modifier and Type | Class and 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.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Mapper(java.lang.String simpleName) |
| Modifier and Type | Method and 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, waittoXContentpublic 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)