org.elasticsearch.index.mapper.xcontent
Class XContentObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper
- All Implemented Interfaces:
- XContentIncludeInAllMapper, XContentMapper, ToXContent
@ThreadSafe
public class XContentObjectMapper
- extends java.lang.Object
- implements XContentMapper, XContentIncludeInAllMapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
XContentObjectMapper
protected XContentObjectMapper(java.lang.String name)
XContentObjectMapper
protected XContentObjectMapper(java.lang.String name,
boolean enabled,
boolean dynamic,
ContentPath.Type pathType)
XContentObjectMapper
protected XContentObjectMapper(java.lang.String name,
boolean enabled,
boolean dynamic,
ContentPath.Type pathType,
FormatDateTimeFormatter[] dateTimeFormatters)
name
public java.lang.String name()
- Specified by:
name
in interface XContentMapper
includeInAll
public void includeInAll(java.lang.Boolean includeInAll)
- Specified by:
includeInAll
in interface XContentIncludeInAllMapper
putMapper
public XContentObjectMapper putMapper(XContentMapper mapper)
traverse
public void traverse(FieldMapperListener fieldMapperListener)
- Specified by:
traverse
in interface XContentMapper
parse
public void parse(ParseContext context)
throws java.io.IOException
- Specified by:
parse
in interface XContentMapper
- Throws:
java.io.IOException
merge
public void merge(XContentMapper mergeWith,
MergeContext mergeContext)
throws MergeMappingException
- Specified by:
merge
in interface XContentMapper
- Throws:
MergeMappingException
toXContent
public void toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException
toXContent
public void toXContent(XContentBuilder builder,
ToXContent.Params params,
XContentMapper... additionalMappers)
throws java.io.IOException
- Throws:
java.io.IOException