Class PivotGroupBy

java.lang.Object
co.elastic.clients.elasticsearch.transform.PivotGroupBy
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<PivotGroupBy.Kind,​java.lang.Object>

@JsonpDeserializable
public class PivotGroupBy
extends java.lang.Object
implements TaggedUnion<PivotGroupBy.Kind,​java.lang.Object>, JsonpSerializable
See Also:
API specification
  • Field Details

  • Constructor Details

  • Method Details

    • _kind

      public final PivotGroupBy.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<PivotGroupBy.Kind,​java.lang.Object>
      Returns:
      the variant kind
    • _get

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<PivotGroupBy.Kind,​java.lang.Object>
    • of

      public static PivotGroupBy of​(java.util.function.Function<PivotGroupBy.Builder,​ObjectBuilder<PivotGroupBy>> fn)
    • isDateHistogram

      public boolean isDateHistogram()
      Is this variant instance of kind date_histogram?
    • dateHistogram

      public DateHistogramAggregation dateHistogram()
      Get the date_histogram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date_histogram kind.
    • isGeotileGrid

      public boolean isGeotileGrid()
      Is this variant instance of kind geotile_grid?
    • geotileGrid

      public GeoTileGridAggregation geotileGrid()
      Get the geotile_grid variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the geotile_grid kind.
    • isHistogram

      public boolean isHistogram()
      Is this variant instance of kind histogram?
    • histogram

      public HistogramAggregation histogram()
      Get the histogram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the histogram kind.
    • isTerms

      public boolean isTerms()
      Is this variant instance of kind terms?
    • terms

      public TermsAggregation terms()
      Get the terms variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the terms kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • toString

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

      protected static void setupPivotGroupByDeserializer​(ObjectDeserializer<PivotGroupBy.Builder> op)