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 |
|---|---|
RootObjectMapper |
copyAndPutMapper(Mapper mapper)
Return a copy of this mapper that has the given
mapper as a
sub mapper. |
boolean |
dateDetection() |
protected void |
doMerge(ObjectMapper mergeWith,
boolean updateAllTypes) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
FormatDateTimeFormatter[] |
dynamicDateTimeFormatters() |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
String name,
String dynamicType) |
Mapper.Builder |
findTemplateBuilder(ParseContext context,
String name,
String dynamicType,
String matchType) |
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(Map<String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
clone, dynamic, fullPath, getMapper, includeInAll, includeInAllIfNotSet, isEnabled, iterator, name, nested, nestedTypeFilter, nestedTypePathAsString, pathType, putMapper, toXContent, toXContent, unsetIncludeInAllsimpleNamepublic RootObjectMapper copyAndPutMapper(Mapper mapper)
mapper as a
sub mapper.public ObjectMapper mappingUpdate(Mapper mapper)
ObjectMappermappingUpdate in class ObjectMapperpublic boolean dateDetection()
public boolean numericDetection()
public FormatDateTimeFormatter[] dynamicDateTimeFormatters()
public Mapper.Builder findTemplateBuilder(ParseContext context, String name, String dynamicType)
public Mapper.Builder findTemplateBuilder(ParseContext context, String name, String dynamicType, String 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(Map<String,MappedFieldType> fullNameToFieldType)
MapperupdateFieldType in class ObjectMapperprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class ObjectMapperIOExceptionCopyright © 2009–2017. All rights reserved.