public class RootObjectMapper extends ObjectMapper
Modifier and Type | Class and Description |
---|---|
static class |
RootObjectMapper.Builder |
static class |
RootObjectMapper.Defaults |
static class |
RootObjectMapper.TypeParser |
ObjectMapper.Dynamic, ObjectMapper.Nested
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
CONTENT_TYPE, NESTED_CONTENT_TYPE
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
boolean |
dateDetection() |
protected void |
doMerge(ObjectMapper mergeWith,
boolean updateAllTypes) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
FormatDateTimeFormatter[] |
dynamicDateTimeFormatters() |
DynamicTemplate |
findTemplate(ContentPath path,
java.lang.String name,
DynamicTemplate.XContentFieldType matchType) |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
java.lang.String name,
DynamicTemplate.XContentFieldType matchType) |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
java.lang.String name,
java.lang.String dynamicType,
DynamicTemplate.XContentFieldType matchType)
Find a template.
|
ObjectMapper |
mappingUpdate(Mapper mapper)
Build a mapping update with the provided sub mapping update.
|
RootObjectMapper |
merge(Mapper mergeWith,
boolean updateAllTypes)
Return the merge of
mergeWith into this. |
boolean |
numericDetection() |
RootObjectMapper |
updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
clone, dynamic, fullPath, getMapper, getParentObjectMapper, includeInAll, isEnabled, iterator, name, nested, nestedTypeFilter, nestedTypePathAsString, parentObjectMapperAreNested, putMapper, toXContent, toXContent
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public ObjectMapper mappingUpdate(Mapper mapper)
ObjectMapper
mappingUpdate
in class ObjectMapper
public boolean dateDetection()
public boolean numericDetection()
public FormatDateTimeFormatter[] dynamicDateTimeFormatters()
public Mapper.Builder findTemplateBuilder(ParseContext context, java.lang.String name, DynamicTemplate.XContentFieldType matchType)
public Mapper.Builder findTemplateBuilder(ParseContext context, java.lang.String name, java.lang.String dynamicType, DynamicTemplate.XContentFieldType matchType)
null
if no template could be found.name
- the field namedynamicType
- the field type to give the field if the template does not define onematchType
- the type of the field in the json document or null if unknownpublic DynamicTemplate findTemplate(ContentPath path, java.lang.String name, DynamicTemplate.XContentFieldType matchType)
public RootObjectMapper merge(Mapper mergeWith, boolean updateAllTypes)
Mapper
mergeWith
into this.
Both this
and mergeWith
will be left unmodified.merge
in class ObjectMapper
protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes)
doMerge
in class ObjectMapper
public RootObjectMapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
Mapper
updateFieldType
in class ObjectMapper
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class ObjectMapper
java.io.IOException