类 GroupConfig

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

public class GroupConfig
extends java.lang.Object
implements Validatable, org.easysearch.common.xcontent.ToXContentObject
The configuration object for the groups section in the rollup config. Basically just a wrapper for histo/date histo/terms objects { "groups": [ "date_histogram": {...}, "histogram" : {...}, "terms" : {...} ] }
  • 构造器详细资料

  • 方法详细资料

    • 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.
    • getDateHistogram

      public DateHistogramGroupConfig getDateHistogram()
      返回:
      the configuration of the date histogram
    • getHistogram

      @Nullable public HistogramGroupConfig getHistogram()
      返回:
      the configuration of the histogram
    • getTerms

      @Nullable public TermsGroupConfig getTerms()
      返回:
      the configuration of the terms
    • 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 GroupConfig fromXContent​(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException
      抛出:
      java.io.IOException