Class CompositeAggregationSource

java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.CompositeAggregationSource
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<java.lang.Object>

@JsonpDeserializable
public class CompositeAggregationSource
extends java.lang.Object
implements TaggedUnion<java.lang.Object>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<java.lang.Object>
      Returns:
      the variant type
    • _get

      public java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<java.lang.Object>
    • terms

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

      public HistogramAggregation histogram()
      Get the histogram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the histogram kind.
    • 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.
    • 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.
    • serialize

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

      protected static void setupCompositeAggregationSourceDeserializer​(DelegatingDeserializer<CompositeAggregationSource.Builder> op)