类 RolloverRequest

java.lang.Object
org.easysearch.client.TimedRequest
org.easysearch.client.indices.rollover.RolloverRequest
所有已实现的接口:
Validatable, org.easysearch.common.xcontent.ToXContent, org.easysearch.common.xcontent.ToXContentObject

public class RolloverRequest
extends TimedRequest
implements org.easysearch.common.xcontent.ToXContentObject
Request class to swap index under an alias upon satisfying conditions
  • 嵌套类概要

    从接口继承的嵌套类/接口 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.client.TimedRequest

    DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT

    从接口继承的字段 org.easysearch.common.xcontent.ToXContent

    EMPTY_PARAMS

    从接口继承的字段 org.easysearch.client.Validatable

    EMPTY
  • 构造器概要

    构造器
    构造器 说明
    RolloverRequest​(java.lang.String alias, java.lang.String newIndexName)  
  • 方法概要

    修饰符和类型 方法 说明
    RolloverRequest addMaxIndexAgeCondition​(org.easysearch.common.unit.TimeValue age)
    Adds condition to check if the index is at least age old
    RolloverRequest addMaxIndexDocsCondition​(long numDocs)
    Adds condition to check if the index has at least numDocs
    RolloverRequest addMaxIndexSizeCondition​(org.easysearch.common.unit.ByteSizeValue size)
    Adds a size-based condition to check if the index size is at least size.
    RolloverRequest dryRun​(boolean dryRun)
    Sets if the rollover should not be executed when conditions are met
    java.lang.String getAlias()
    Returns the alias of the rollover operation
    java.util.Map<java.lang.String,​org.easysearch.action.admin.indices.rollover.Condition<?>> getConditions()
    Returns all set conditions
    CreateIndexRequest getCreateIndexRequest()
    Returns the inner CreateIndexRequest.
    java.lang.String getNewIndexName()
    Returns the new index name for the rollover
    boolean isDryRun()
    Returns if the rollover should not be executed when conditions are met
    org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)  

    从类继承的方法 org.easysearch.client.TimedRequest

    masterNodeTimeout, setMasterTimeout, setTimeout, timeout

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject

    isFragment

    从接口继承的方法 org.easysearch.client.Validatable

    validate
  • 构造器详细资料

    • RolloverRequest

      public RolloverRequest​(java.lang.String alias, java.lang.String newIndexName)
  • 方法详细资料

    • getAlias

      public java.lang.String getAlias()
      Returns the alias of the rollover operation
    • getNewIndexName

      public java.lang.String getNewIndexName()
      Returns the new index name for the rollover
    • dryRun

      public RolloverRequest dryRun​(boolean dryRun)
      Sets if the rollover should not be executed when conditions are met
    • isDryRun

      public boolean isDryRun()
      Returns if the rollover should not be executed when conditions are met
    • addMaxIndexAgeCondition

      public RolloverRequest addMaxIndexAgeCondition​(org.easysearch.common.unit.TimeValue age)
      Adds condition to check if the index is at least age old
    • addMaxIndexDocsCondition

      public RolloverRequest addMaxIndexDocsCondition​(long numDocs)
      Adds condition to check if the index has at least numDocs
    • addMaxIndexSizeCondition

      public RolloverRequest addMaxIndexSizeCondition​(org.easysearch.common.unit.ByteSizeValue size)
      Adds a size-based condition to check if the index size is at least size.
    • getConditions

      public java.util.Map<java.lang.String,​org.easysearch.action.admin.indices.rollover.Condition<?>> getConditions()
      Returns all set conditions
    • getCreateIndexRequest

      public CreateIndexRequest getCreateIndexRequest()
      Returns the inner CreateIndexRequest. Allows to configure mappings, settings and aliases for the new index.
    • 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