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 |
---|---|
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() |
DynamicTemplate |
findTemplate(ContentPath path,
String name,
String matchType) |
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, unsetIncludeInAll
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RootObjectMapper copyAndPutMapper(Mapper mapper)
mapper
as a
sub mapper.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, String name, String dynamicType)
public Mapper.Builder findTemplateBuilder(ParseContext context, String name, String dynamicType, String matchType)
public DynamicTemplate findTemplate(ContentPath path, String name, String 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(Map<String,MappedFieldType> fullNameToFieldType)
Mapper
updateFieldType
in class ObjectMapper
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class ObjectMapper
IOException
Copyright © 2009–2016. All rights reserved.