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.NestedMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsCONTENT_TYPE, NESTED_CONTENT_TYPEEMPTY_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, includeInAll, isEnabled, iterator, name, nested, nestedTypeFilter, nestedTypePathAsString, putMapper, toXContent, toXContentsimpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic ObjectMapper mappingUpdate(Mapper mapper)
ObjectMappermappingUpdate in class ObjectMapperpublic 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)
MappermergeWith into this.
Both this and mergeWith will be left unmodified.merge in class ObjectMapperprotected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes)
doMerge in class ObjectMapperpublic RootObjectMapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
MapperupdateFieldType in class ObjectMapperprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class ObjectMapperjava.io.IOException