org.elasticsearch.index.mapper.xcontent
Class ObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.xcontent.ObjectMapper
- All Implemented Interfaces:
- ToXContent, IncludeInAllMapper, XContentMapper
- Direct Known Subclasses:
- RootObjectMapper
@ThreadSafe
public class ObjectMapper
- extends java.lang.Object
- implements XContentMapper, IncludeInAllMapper
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
ObjectMapper
protected ObjectMapper(java.lang.String name)
ObjectMapper
protected ObjectMapper(java.lang.String name,
boolean enabled,
boolean dynamic,
ContentPath.Type pathType)
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 IncludeInAllMapper
putMapper
public ObjectMapper 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
doMerge
protected void doMerge(ObjectMapper mergeWith,
MergeContext mergeContext)
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,
ToXContent custom,
XContentMapper... additionalMappers)
throws java.io.IOException
- Throws:
java.io.IOException
doXContent
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Throws:
java.io.IOException