Class CompositeAggregationSource
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.CompositeAggregationSource
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<CompositeAggregationSource.Kind,Object>
@JsonpDeserializable
public class CompositeAggregationSource
extends Object
implements TaggedUnion<CompositeAggregationSource.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCompositeAggregationSourcevariant kinds. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.Get thedate_histogramvariant value.Get thegeotile_gridvariant value.Get thehistogramvariant value.booleanIs this variant instance of kinddate_histogram?booleanIs this variant instance of kindgeotile_grid?booleanIs this variant instance of kindhistogram?booleanisTerms()Is this variant instance of kindterms?static CompositeAggregationSourcevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupCompositeAggregationSourceDeserializer(ObjectDeserializer<CompositeAggregationSource.Builder> op) terms()Get thetermsvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
CompositeAggregationSource
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<CompositeAggregationSource.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<CompositeAggregationSource.Kind,Object>
-
of
public static CompositeAggregationSource of(Function<CompositeAggregationSource.Builder, ObjectBuilder<CompositeAggregationSource>> fn) -
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermskind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram? -
histogram
Get thehistogramvariant value.- Throws:
IllegalStateException- if the current variant is not of thehistogramkind.
-
isDateHistogram
public boolean isDateHistogram()Is this variant instance of kinddate_histogram? -
dateHistogram
Get thedate_histogramvariant value.- Throws:
IllegalStateException- if the current variant is not of thedate_histogramkind.
-
isGeotileGrid
public boolean isGeotileGrid()Is this variant instance of kindgeotile_grid? -
geotileGrid
Get thegeotile_gridvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeotile_gridkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupCompositeAggregationSourceDeserializer
protected static void setupCompositeAggregationSourceDeserializer(ObjectDeserializer<CompositeAggregationSource.Builder> op)
-