类 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.
  • 方法概要

    修饰符和类型 方法 说明
    PutIndexTemplateRequest alias​(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()  
    PutIndexTemplateRequest aliases​(java.lang.String source)
    Sets the aliases that will be associated with the index when it gets created
    PutIndexTemplateRequest aliases​(java.util.Map<java.lang.String,​?> source)
    Sets the aliases that will be associated with the index when it gets created
    PutIndexTemplateRequest aliases​(org.easysearch.common.bytes.BytesReference source)
    Sets the aliases that will be associated with the index when it gets created
    PutIndexTemplateRequest aliases​(org.easysearch.common.xcontent.XContentBuilder source)
    Sets the aliases that will be associated with the index when it gets created
    java.lang.String cause()  
    PutIndexTemplateRequest cause​(java.lang.String cause)
    The cause for this index template creation.
    boolean create()  
    PutIndexTemplateRequest create​(boolean create)
    Set to true to force only creation, not an update of an index template.
    java.lang.String[] indices()  
    org.easysearch.action.support.IndicesOptions indicesOptions()  
    PutIndexTemplateRequest mapping​(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)
    Adds mapping that will be added when the index gets created.
    PutIndexTemplateRequest mapping​(java.util.Map<java.lang.String,​java.lang.Object> source)
    Adds mapping that will be added when the index gets created.
    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.
    PutIndexTemplateRequest mapping​(org.easysearch.common.xcontent.XContentBuilder source)
    Adds mapping that will be added when the index gets created.
    org.easysearch.common.bytes.BytesReference mappings()  
    java.lang.String name()
    The name of the index template.
    PutIndexTemplateRequest name​(java.lang.String name)
    Sets the name of the index template.
    int order()  
    PutIndexTemplateRequest order​(int order)  
    java.util.List<java.lang.String> patterns()  
    PutIndexTemplateRequest patterns​(java.util.List<java.lang.String> indexPatterns)  
    org.easysearch.common.settings.Settings settings()  
    PutIndexTemplateRequest settings​(java.lang.String source, org.easysearch.common.xcontent.XContentType xContentType)
    The settings to create the index template with (either json/yaml format).
    PutIndexTemplateRequest settings​(java.util.Map<java.lang.String,​java.lang.Object> source)
    The settings to create the index template with (either json or yaml format).
    PutIndexTemplateRequest settings​(org.easysearch.common.settings.Settings settings)
    The settings to create the index template with.
    PutIndexTemplateRequest settings​(org.easysearch.common.settings.Settings.Builder settings)
    The settings to create the index template with.
    PutIndexTemplateRequest source​(byte[] source, int offset, int length, org.easysearch.common.xcontent.XContentType xContentType)
    The template source definition.
    PutIndexTemplateRequest source​(byte[] source, org.easysearch.common.xcontent.XContentType xContentType)
    The template source definition.
    PutIndexTemplateRequest source​(java.lang.String templateSource, org.easysearch.common.xcontent.XContentType xContentType)
    The template source definition.
    PutIndexTemplateRequest source​(java.util.Map<java.lang.String,​java.lang.Object> templateSource)
    The template source definition.
    PutIndexTemplateRequest source​(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)
    The template source definition.
    PutIndexTemplateRequest source​(org.easysearch.common.xcontent.XContentBuilder templateBuilder)
    The template source definition.
    org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)  
    org.easysearch.action.ActionRequestValidationException validate()  
    java.lang.Integer version()  
    PutIndexTemplateRequest version​(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

      public PutIndexTemplateRequest name​(java.lang.String name)
      Sets the name of the index template.
    • name

      public java.lang.String name()
      The name of the index template.
    • patterns

      public PutIndexTemplateRequest patterns​(java.util.List<java.lang.String> indexPatterns)
    • patterns

      public java.util.List<java.lang.String> patterns()
    • order

      public PutIndexTemplateRequest order​(int order)
    • order

      public int order()
    • version

      public PutIndexTemplateRequest version​(java.lang.Integer version)
    • version

      public java.lang.Integer version()
    • create

      public PutIndexTemplateRequest create​(boolean create)
      Set to true to force only creation, not an update of an index template. If it already exists, it will fail with an IllegalArgumentException.
    • create

      public boolean create()
    • settings

      public PutIndexTemplateRequest settings​(org.easysearch.common.settings.Settings settings)
      The settings to create the index template with.
    • settings

      public PutIndexTemplateRequest settings​(org.easysearch.common.settings.Settings.Builder 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

      public PutIndexTemplateRequest settings​(java.util.Map<java.lang.String,​java.lang.Object> source)
      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 source
      xContentType - The type of content contained within the source
    • cause

      public PutIndexTemplateRequest cause​(java.lang.String cause)
      The cause for this index template creation.
    • cause

      public java.lang.String cause()
    • mapping

      public PutIndexTemplateRequest mapping​(org.easysearch.common.xcontent.XContentBuilder source)
      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 source
      xContentType - the source content type
    • mapping

      public PutIndexTemplateRequest mapping​(java.util.Map<java.lang.String,​java.lang.Object> source)
      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

      public PutIndexTemplateRequest aliases​(java.util.Map<java.lang.String,​?> source)
      Sets the aliases that will be associated with the index when it gets created
    • aliases

      public PutIndexTemplateRequest aliases​(org.easysearch.common.xcontent.XContentBuilder source)
      Sets the aliases that will be associated with the index when it gets created
    • aliases

      public PutIndexTemplateRequest aliases​(java.lang.String source)
      Sets the aliases that will be associated with the index when it gets created
    • aliases

      public PutIndexTemplateRequest aliases​(org.easysearch.common.bytes.BytesReference source)
      Sets the aliases that will be associated with the index when it gets created
    • alias

      public PutIndexTemplateRequest alias​(org.easysearch.action.admin.indices.alias.Alias 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