类 PutIndexTemplateRequest
java.lang.Object
org.easysearch.transport.TransportMessage
org.easysearch.transport.TransportRequest
org.easysearch.action.ActionRequest
org.easysearch.action.support.master.MasterNodeRequest<PutIndexTemplateRequest>
org.easysearch.client.indices.PutIndexTemplateRequest
- 所有已实现的接口:
org.easysearch.action.IndicesRequest,org.easysearch.common.io.stream.Writeable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentFragment,org.easysearch.tasks.TaskAwareRequest
public class PutIndexTemplateRequest extends org.easysearch.action.support.master.MasterNodeRequest<PutIndexTemplateRequest> implements org.easysearch.action.IndicesRequest, org.easysearch.common.xcontent.ToXContentFragment
A request to create an index template.
-
嵌套类概要
从类继承的嵌套类/接口 org.easysearch.transport.TransportRequest
org.easysearch.transport.TransportRequest.Empty从接口继承的嵌套类/接口 org.easysearch.action.IndicesRequest
org.easysearch.action.IndicesRequest.Replaceable从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params从接口继承的嵌套类/接口 org.easysearch.common.io.stream.Writeable
org.easysearch.common.io.stream.Writeable.Reader<V extends java.lang.Object>, org.easysearch.common.io.stream.Writeable.Writer<V extends java.lang.Object> -
字段概要
从类继承的字段 org.easysearch.action.support.master.MasterNodeRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS -
构造器概要
构造器 构造器 说明 PutIndexTemplateRequest(java.lang.String name)Constructs a new put index template request with the provided name. -
方法概要
修饰符和类型 方法 说明 PutIndexTemplateRequestalias(org.easysearch.action.admin.indices.alias.Alias alias)Adds an alias that will be added when the index gets created.java.util.Set<org.easysearch.action.admin.indices.alias.Alias>aliases()PutIndexTemplateRequestaliases(java.lang.String source)Sets the aliases that will be associated with the index when it gets createdPutIndexTemplateRequestaliases(java.util.Map<java.lang.String,?> source)Sets the aliases that will be associated with the index when it gets createdPutIndexTemplateRequestaliases(org.easysearch.common.bytes.BytesReference source)Sets the aliases that will be associated with the index when it gets createdPutIndexTemplateRequestaliases(org.easysearch.common.xcontent.XContentBuilder source)Sets the aliases that will be associated with the index when it gets createdjava.lang.Stringcause()PutIndexTemplateRequestcause(java.lang.String cause)The cause for this index template creation.booleancreate()PutIndexTemplateRequestcreate(boolean create)Set totrueto force only creation, not an update of an index template.java.lang.String[]indices()org.easysearch.action.support.IndicesOptionsindicesOptions()PutIndexTemplateRequestmapping(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestmapping(java.util.Map<java.lang.String,java.lang.Object> source)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestmapping(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestmapping(org.easysearch.common.xcontent.XContentBuilder source)Adds mapping that will be added when the index gets created.org.easysearch.common.bytes.BytesReferencemappings()java.lang.Stringname()The name of the index template.PutIndexTemplateRequestname(java.lang.String name)Sets the name of the index template.intorder()PutIndexTemplateRequestorder(int order)java.util.List<java.lang.String>patterns()PutIndexTemplateRequestpatterns(java.util.List<java.lang.String> indexPatterns)org.easysearch.common.settings.Settingssettings()PutIndexTemplateRequestsettings(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)The settings to create the index template with (either json/yaml format).PutIndexTemplateRequestsettings(java.util.Map<java.lang.String,java.lang.Object> source)The settings to create the index template with (either json or yaml format).PutIndexTemplateRequestsettings(org.easysearch.common.settings.Settings settings)The settings to create the index template with.PutIndexTemplateRequestsettings(org.easysearch.common.settings.Settings.Builder settings)The settings to create the index template with.PutIndexTemplateRequestsource(byte[] source, int offset, int length, org.easysearch.common.xcontent.XContentType xContentType)The template source definition.PutIndexTemplateRequestsource(byte[] source, org.easysearch.common.xcontent.XContentType xContentType)The template source definition.PutIndexTemplateRequestsource(java.lang.String templateSource, org.easysearch.common.xcontent.XContentType xContentType)The template source definition.PutIndexTemplateRequestsource(java.util.Map<java.lang.String,java.lang.Object> templateSource)The template source definition.PutIndexTemplateRequestsource(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)The template source definition.PutIndexTemplateRequestsource(org.easysearch.common.xcontent.XContentBuilder templateBuilder)The template source definition.org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)org.easysearch.action.ActionRequestValidationExceptionvalidate()java.lang.Integerversion()PutIndexTemplateRequestversion(java.lang.Integer version)从类继承的方法 org.easysearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout, writeTo从类继承的方法 org.easysearch.action.ActionRequest
getShouldStoreResult从类继承的方法 org.easysearch.transport.TransportRequest
getParentTask, setParentTask从类继承的方法 org.easysearch.transport.TransportMessage
remoteAddress, remoteAddress从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.action.IndicesRequest
includeDataStreams从接口继承的方法 org.easysearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask从接口继承的方法 org.easysearch.common.xcontent.ToXContentFragment
isFragment
-
构造器详细资料
-
PutIndexTemplateRequest
public PutIndexTemplateRequest(java.lang.String name)Constructs a new put index template request with the provided name.
-
-
方法详细资料
-
validate
public org.easysearch.action.ActionRequestValidationException validate()- 指定者:
validate在类中org.easysearch.action.ActionRequest
-
name
Sets the name of the index template. -
name
public java.lang.String name()The name of the index template. -
patterns
-
patterns
public java.util.List<java.lang.String> patterns() -
order
-
order
public int order() -
version
-
version
public java.lang.Integer version() -
create
Set totrueto force only creation, not an update of an index template. If it already exists, it will fail with anIllegalArgumentException. -
create
public boolean create() -
settings
The settings to create the index template with. -
settings
The settings to create the index template with. -
settings
public PutIndexTemplateRequest settings(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)The settings to create the index template with (either json/yaml format). -
settings
The settings to create the index template with (either json or yaml format). -
settings
public org.easysearch.common.settings.Settings settings() -
mapping
public PutIndexTemplateRequest mapping(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)Adds mapping that will be added when the index gets created.- 参数:
source- The mapping sourcexContentType- The type of content contained within the source
-
cause
The cause for this index template creation. -
cause
public java.lang.String cause() -
mapping
Adds mapping that will be added when the index gets created.- 参数:
source- The mapping source
-
mapping
public PutIndexTemplateRequest mapping(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)Adds mapping that will be added when the index gets created.- 参数:
source- The mapping sourcexContentType- the source content type
-
mapping
Adds mapping that will be added when the index gets created.- 参数:
source- The mapping source
-
mappings
public org.easysearch.common.bytes.BytesReference mappings() -
source
public PutIndexTemplateRequest source(org.easysearch.common.xcontent.XContentBuilder templateBuilder)The template source definition. -
source
public PutIndexTemplateRequest source(java.util.Map<java.lang.String,java.lang.Object> templateSource)The template source definition. -
source
public PutIndexTemplateRequest source(java.lang.String templateSource, org.easysearch.common.xcontent.XContentType xContentType)The template source definition. -
source
public PutIndexTemplateRequest source(byte[] source, org.easysearch.common.xcontent.XContentType xContentType)The template source definition. -
source
public PutIndexTemplateRequest source(byte[] source, int offset, int length, org.easysearch.common.xcontent.XContentType xContentType)The template source definition. -
source
public PutIndexTemplateRequest source(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)The template source definition. -
aliases
public java.util.Set<org.easysearch.action.admin.indices.alias.Alias> aliases() -
aliases
Sets the aliases that will be associated with the index when it gets created -
aliases
Sets the aliases that will be associated with the index when it gets created -
aliases
Sets the aliases that will be associated with the index when it gets created -
aliases
Sets the aliases that will be associated with the index when it gets created -
alias
Adds an alias that will be added when the index gets created.- 参数:
alias- The metadata for the new alias- 返回:
- the index template creation request
-
indices
public java.lang.String[] indices()- 指定者:
indices在接口中org.easysearch.action.IndicesRequest
-
indicesOptions
public org.easysearch.action.support.IndicesOptions indicesOptions()- 指定者:
indicesOptions在接口中org.easysearch.action.IndicesRequest
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-