Module org.elasticsearch.server
Class RolloverConditions.Builder
java.lang.Object
org.elasticsearch.action.admin.indices.rollover.RolloverConditions.Builder
- Enclosing class:
RolloverConditions
Helps to build or create a mutation of rollover conditions
-
Method Summary
Modifier and TypeMethodDescriptionAdds condition to check if the index is at leastageoldaddMaxIndexDocsCondition(Long numDocs) Adds condition to check if the index has at leastnumDocsAdds a size-based condition to check if the index size is at leastsize.addMaxPrimaryShardDocsCondition(Long numDocs) Adds a size-based condition to check if the docs of the largest primary shard has at leastnumDocsAdds a size-based condition to check if the size of the largest primary shard is at leastsize.Adds required condition to check if the index is at leastageoldaddMinIndexDocsCondition(Long numDocs) Adds required condition to check if the index has at leastnumDocsAdds a size-based required condition to check if the index size is at leastsize.addMinPrimaryShardDocsCondition(Long numDocs) Adds a size-based required condition to check if the docs of the largest primary shard has at leastnumDocsAdds a size-based required condition to check if the size of the largest primary shard is at leastsize.addOptimalShardCountCondition(AutoShardingResult autoShardingResult) Adds an optimal shard count condition if the autosharding result is of type INCREASE or DECREASE_SHARDS, ignores it otherwise.build()
-
Method Details
-
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. -
addMaxPrimaryShardSizeCondition
Adds a size-based condition to check if the size of the largest primary shard is at leastsize. -
addMaxPrimaryShardDocsCondition
Adds a size-based condition to check if the docs of the largest primary shard has at leastnumDocs -
addMinIndexAgeCondition
Adds required condition to check if the index is at leastageold -
addMinIndexDocsCondition
Adds required condition to check if the index has at leastnumDocs -
addMinIndexSizeCondition
Adds a size-based required condition to check if the index size is at leastsize. -
addMinPrimaryShardSizeCondition
Adds a size-based required condition to check if the size of the largest primary shard is at leastsize. -
addMinPrimaryShardDocsCondition
Adds a size-based required condition to check if the docs of the largest primary shard has at leastnumDocs -
addOptimalShardCountCondition
public RolloverConditions.Builder addOptimalShardCountCondition(AutoShardingResult autoShardingResult) Adds an optimal shard count condition if the autosharding result is of type INCREASE or DECREASE_SHARDS, ignores it otherwise. -
build
-