java.lang.Object
org.elasticsearch.client.transform.transforms.pivot.GroupConfig
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class GroupConfig
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
Class describing how to group data
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  GroupConfig.Builder  

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type Method Description
    static GroupConfig.Builder builder()  
    boolean equals​(java.lang.Object other)  
    static GroupConfig fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
    Leniently parse a GroupConfig.
    java.util.Map<java.lang.String,​SingleGroupSource> getGroups()  
    int hashCode()  
    java.lang.String toString()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject

    isFragment
  • Method Details

    • fromXContent

      public static GroupConfig fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Leniently parse a GroupConfig. Parsing is lenient in that unknown fields in the root of the object are ignored. Unknown group types SingleGroupSource.Type will cause a parsing error.
      Parameters:
      parser - The XContent parser
      Returns:
      The parsed object
      Throws:
      java.io.IOException - On parsing error
    • getGroups

      public java.util.Map<java.lang.String,​SingleGroupSource> getGroups()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • builder

      public static GroupConfig.Builder builder()