public abstract class Mapper extends Object implements ToXContent, 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.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
abstract Mapper |
merge(Mapper mergeWith,
boolean updateAllTypes)
Return the merge of
mergeWith into this. |
abstract String |
name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
|
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(Map<String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toXContent
public Mapper(String simpleName)
public final String simpleName()
public abstract 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(Map<String,MappedFieldType> fullNameToFieldType)
Copyright © 2009–2016. All rights reserved.