ToXContent
, ToXContentObject
public class DynamicTemplate extends java.lang.Object implements ToXContentObject
Modifier and Type | Class | Description |
---|---|---|
static class |
DynamicTemplate.MatchType |
|
static class |
DynamicTemplate.XContentFieldType |
The type of a field as detected while parsing a json document.
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
mappingForName(java.lang.String name,
java.lang.String dynamicType) |
|
java.lang.String |
mappingType(java.lang.String dynamicType) |
|
boolean |
match(java.lang.String path,
java.lang.String name,
DynamicTemplate.XContentFieldType xcontentFieldType) |
|
java.lang.String |
name() |
|
static DynamicTemplate |
parse(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> conf,
Version indexVersionCreated) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public static DynamicTemplate parse(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> conf, Version indexVersionCreated) throws MapperParsingException
MapperParsingException
public java.lang.String name()
public boolean match(java.lang.String path, java.lang.String name, DynamicTemplate.XContentFieldType xcontentFieldType)
public java.lang.String mappingType(java.lang.String dynamicType)
public java.util.Map<java.lang.String,java.lang.Object> mappingForName(java.lang.String name, java.lang.String dynamicType)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException