类 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) -
方法概要
修饰符和类型 方法 说明 RolloverRequestaddMaxIndexAgeCondition(org.easysearch.common.unit.TimeValue age)Adds condition to check if the index is at leastageoldRolloverRequestaddMaxIndexDocsCondition(long numDocs)Adds condition to check if the index has at leastnumDocsRolloverRequestaddMaxIndexSizeCondition(org.easysearch.common.unit.ByteSizeValue size)Adds a size-based condition to check if the index size is at leastsize.RolloverRequestdryRun(boolean dryRun)Sets if the rollover should not be executed when conditions are metjava.lang.StringgetAlias()Returns the alias of the rollover operationjava.util.Map<java.lang.String,org.easysearch.action.admin.indices.rollover.Condition<?>>getConditions()Returns all set conditionsCreateIndexRequestgetCreateIndexRequest()Returns the innerCreateIndexRequest.java.lang.StringgetNewIndexName()Returns the new index name for the rolloverbooleanisDryRun()Returns if the rollover should not be executed when conditions are metorg.easysearch.common.xcontent.XContentBuildertoXContent(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
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
Adds condition to check if the index is at leastageold -
addMaxIndexDocsCondition
Adds condition to check if the index has at leastnumDocs -
addMaxIndexSizeCondition
Adds a size-based condition to check if the index size is at leastsize. -
getConditions
public java.util.Map<java.lang.String,org.easysearch.action.admin.indices.rollover.Condition<?>> getConditions()Returns all set conditions -
getCreateIndexRequest
Returns the innerCreateIndexRequest. 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
-