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() |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
java.lang.String name,
java.lang.String matchType) |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
java.lang.String name,
java.lang.String dynamicType,
java.lang.String 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, includeInAll, includeInAllIfNotSet, isEnabled, iterator, name, nested, nestedTypeFilter, nestedTypePathAsString, putMapper, toXContent, toXContent, unsetIncludeInAll
simpleName
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, java.lang.String matchType)
public Mapper.Builder findTemplateBuilder(ParseContext context, java.lang.String name, java.lang.String dynamicType, java.lang.String 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 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