Class RolloverConditions.Builder

java.lang.Object
org.elasticsearch.action.admin.indices.rollover.RolloverConditions.Builder
Enclosing class:
RolloverConditions

public static class RolloverConditions.Builder extends Object
Helps to build or create a mutation of rollover conditions
  • Method Details

    • addMaxIndexAgeCondition

      public RolloverConditions.Builder addMaxIndexAgeCondition(TimeValue age)
      Adds condition to check if the index is at least age old
    • addMaxIndexDocsCondition

      public RolloverConditions.Builder addMaxIndexDocsCondition(Long numDocs)
      Adds condition to check if the index has at least numDocs
    • addMaxIndexSizeCondition

      public RolloverConditions.Builder addMaxIndexSizeCondition(ByteSizeValue size)
      Adds a size-based condition to check if the index size is at least size.
    • addMaxPrimaryShardSizeCondition

      public RolloverConditions.Builder addMaxPrimaryShardSizeCondition(ByteSizeValue size)
      Adds a size-based condition to check if the size of the largest primary shard is at least size.
    • addMaxPrimaryShardDocsCondition

      public RolloverConditions.Builder addMaxPrimaryShardDocsCondition(Long numDocs)
      Adds a size-based condition to check if the docs of the largest primary shard has at least numDocs
    • addMinIndexAgeCondition

      public RolloverConditions.Builder addMinIndexAgeCondition(TimeValue age)
      Adds required condition to check if the index is at least age old
    • addMinIndexDocsCondition

      public RolloverConditions.Builder addMinIndexDocsCondition(Long numDocs)
      Adds required condition to check if the index has at least numDocs
    • addMinIndexSizeCondition

      public RolloverConditions.Builder addMinIndexSizeCondition(ByteSizeValue size)
      Adds a size-based required condition to check if the index size is at least size.
    • addMinPrimaryShardSizeCondition

      public RolloverConditions.Builder addMinPrimaryShardSizeCondition(ByteSizeValue size)
      Adds a size-based required condition to check if the size of the largest primary shard is at least size.
    • addMinPrimaryShardDocsCondition

      public RolloverConditions.Builder addMinPrimaryShardDocsCondition(Long numDocs)
      Adds a size-based required condition to check if the docs of the largest primary shard has at least numDocs
    • build

      public RolloverConditions build()