java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.pivot.SingleGroupSource
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Direct Known Subclasses:
DateHistogramGroupSource, GeoTileGroupSource, HistogramGroupSource, TermsGroupSource

public abstract class SingleGroupSource extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • FIELD

      protected static final org.elasticsearch.xcontent.ParseField FIELD
    • SCRIPT

      protected static final org.elasticsearch.xcontent.ParseField SCRIPT
    • MISSING_BUCKET

      protected static final org.elasticsearch.xcontent.ParseField MISSING_BUCKET
    • field

      protected final String field
    • scriptConfig

      protected final ScriptConfig scriptConfig
    • missingBucket

      protected final boolean missingBucket
  • Constructor Details

  • Method Details

    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • innerXContent

      protected void innerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getType

      public abstract SingleGroupSource.Type getType()
    • getField

      public String getField()
    • getScriptConfig

      public ScriptConfig getScriptConfig()
    • getMissingBucket

      public boolean getMissingBucket()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • getMappingType

      @Nullable public String getMappingType()
      Returns:
      The preferred mapping type if it exists. Is nullable.