public class ObjectMapper extends Mapper implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectMapper.Builder<T extends ObjectMapper.Builder,Y extends ObjectMapper> |
static class |
ObjectMapper.Defaults |
static class |
ObjectMapper.Dynamic |
static class |
ObjectMapper.Nested |
static class |
ObjectMapper.TypeParser |
Mapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE |
static java.lang.String |
NESTED_CONTENT_TYPE |
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
protected ObjectMapper |
clone() |
protected void |
doMerge(ObjectMapper mergeWith,
boolean updateAllTypes) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
ObjectMapper.Dynamic |
dynamic() |
java.lang.String |
fullPath() |
Mapper |
getMapper(java.lang.String field) |
java.lang.Boolean |
includeInAll() |
boolean |
isEnabled() |
java.util.Iterator<Mapper> |
iterator() |
ObjectMapper |
mappingUpdate(Mapper mapper)
Build a mapping update with the provided sub mapping update.
|
ObjectMapper |
merge(Mapper mergeWith,
boolean updateAllTypes)
Return the merge of
mergeWith into this. |
java.lang.String |
name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
|
ObjectMapper.Nested |
nested() |
org.apache.lucene.search.Query |
nestedTypeFilter() |
java.lang.String |
nestedTypePathAsString() |
protected void |
putMapper(Mapper mapper) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
toXContent(XContentBuilder builder,
ToXContent.Params params,
ToXContent custom) |
ObjectMapper |
updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
simpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String CONTENT_TYPE
public static final java.lang.String NESTED_CONTENT_TYPE
protected ObjectMapper clone()
clone in class java.lang.Objectpublic ObjectMapper mappingUpdate(Mapper mapper)
public java.lang.String name()
Mapperpublic boolean isEnabled()
public Mapper getMapper(java.lang.String field)
public ObjectMapper.Nested nested()
public java.lang.Boolean includeInAll()
public org.apache.lucene.search.Query nestedTypeFilter()
protected void putMapper(Mapper mapper)
public java.util.Iterator<Mapper> iterator()
iterator in interface java.lang.Iterable<Mapper>public java.lang.String fullPath()
public java.lang.String nestedTypePathAsString()
public final ObjectMapper.Dynamic dynamic()
public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes)
MappermergeWith into this.
Both this and mergeWith will be left unmodified.protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes)
public ObjectMapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
MapperupdateFieldType in class Mapperpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom) throws java.io.IOException
java.io.IOExceptionprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException