类 RollupJobConfig

java.lang.Object
org.easysearch.client.rollup.job.config.RollupJobConfig
所有已实现的接口:
Validatable, org.easysearch.common.xcontent.ToXContent, org.easysearch.common.xcontent.ToXContentObject

public class RollupJobConfig
extends java.lang.Object
implements Validatable, org.easysearch.common.xcontent.ToXContentObject
This class holds the configuration details of a rollup job, such as the groupings, metrics, what index to rollup and where to roll them to.
  • 嵌套类概要

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

    EMPTY_PARAMS

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

    EMPTY
  • 构造器概要

    构造器
    构造器 说明
    RollupJobConfig​(java.lang.String id, java.lang.String indexPattern, java.lang.String rollupIndex, java.lang.String cron, int pageSize, GroupConfig groupConfig, java.util.List<MetricConfig> metricsConfig, org.easysearch.common.unit.TimeValue timeout)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object other)  
    static RollupJobConfig fromXContent​(org.easysearch.common.xcontent.XContentParser parser, java.lang.String optionalJobId)  
    java.lang.String getCron()  
    GroupConfig getGroupConfig()  
    java.lang.String getId()  
    java.lang.String getIndexPattern()  
    java.util.List<MetricConfig> getMetricsConfig()  
    int getPageSize()  
    java.lang.String getRollupIndex()  
    org.easysearch.common.unit.TimeValue getTimeout()  
    int hashCode()  
    org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)  
    java.util.Optional<ValidationException> validate()
    Perform validation.

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

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

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

    isFragment
  • 构造器详细资料

    • RollupJobConfig

      public RollupJobConfig​(java.lang.String id, java.lang.String indexPattern, java.lang.String rollupIndex, java.lang.String cron, int pageSize, GroupConfig groupConfig, java.util.List<MetricConfig> metricsConfig, @Nullable org.easysearch.common.unit.TimeValue timeout)
  • 方法详细资料

    • validate

      public java.util.Optional<ValidationException> validate()
      从接口复制的说明: Validatable
      Perform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. A ValidationException that is not null is assumed to contain validation errors and will be thrown.
      指定者:
      validate 在接口中 Validatable
      返回:
      An Optional ValidationException that contains a list of validation errors.
    • getId

      public java.lang.String getId()
    • getGroupConfig

      public GroupConfig getGroupConfig()
    • getMetricsConfig

      public java.util.List<MetricConfig> getMetricsConfig()
    • getTimeout

      public org.easysearch.common.unit.TimeValue getTimeout()
    • getIndexPattern

      public java.lang.String getIndexPattern()
    • getRollupIndex

      public java.lang.String getRollupIndex()
    • getCron

      public java.lang.String getCron()
    • getPageSize

      public int getPageSize()
    • 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
    • equals

      public boolean equals​(java.lang.Object other)
      覆盖:
      equals 在类中 java.lang.Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • fromXContent

      public static RollupJobConfig fromXContent​(org.easysearch.common.xcontent.XContentParser parser, @Nullable java.lang.String optionalJobId) throws java.io.IOException
      抛出:
      java.io.IOException