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.BuilderContext
ToXContent.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) |
ObjectMapper |
getParentObjectMapper(MapperService mapperService)
Returns the parent
ObjectMapper instance of the specified object mapper or null if there
isn't any. |
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() |
boolean |
parentObjectMapperAreNested(MapperService mapperService)
Returns whether all parent objects fields are nested too.
|
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.
|
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String NESTED_CONTENT_TYPE
protected ObjectMapper clone()
clone
in class java.lang.Object
public ObjectMapper mappingUpdate(Mapper mapper)
public java.lang.String name()
Mapper
public 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 getParentObjectMapper(MapperService mapperService)
ObjectMapper
instance of the specified object mapper or null
if there
isn't any.public boolean parentObjectMapperAreNested(MapperService mapperService)
public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes)
Mapper
mergeWith
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)
Mapper
updateFieldType
in class Mapper
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom) throws java.io.IOException
java.io.IOException
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException