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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeAggregationSource.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CompositeAggregationSource>
_DESERIALIZER
static java.lang.String
DATE_HISTOGRAM
static java.lang.String
GEOTILE_GRID
static java.lang.String
HISTOGRAM
static java.lang.String
TERMS
-
Constructor Summary
Constructors Constructor Description CompositeAggregationSource(CompositeAggregationSourceVariant value)
CompositeAggregationSource(ObjectBuilder<T> builder)
CompositeAggregationSource(java.util.function.Function<CompositeAggregationSource.Builder,CompositeAggregationSource.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.DateHistogramAggregation
dateHistogram()
Get thedate_histogram
variant value.GeoTileGridAggregation
geotileGrid()
Get thegeotile_grid
variant value.HistogramAggregation
histogram()
Get thehistogram
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCompositeAggregationSourceDeserializer(DelegatingDeserializer<CompositeAggregationSource.Builder> op)
TermsAggregation
terms()
Get theterms
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
TERMS
public static final java.lang.String TERMS- See Also:
- Constant Field Values
-
HISTOGRAM
public static final java.lang.String HISTOGRAM- See Also:
- Constant Field Values
-
DATE_HISTOGRAM
public static final java.lang.String DATE_HISTOGRAM- See Also:
- Constant Field Values
-
GEOTILE_GRID
public static final java.lang.String GEOTILE_GRID- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
CompositeAggregationSource
-
CompositeAggregationSource
-
CompositeAggregationSource
public CompositeAggregationSource(java.util.function.Function<CompositeAggregationSource.Builder,CompositeAggregationSource.Builder> fn)
-
-
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 interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
terms
Get theterms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theterms
kind.
-
histogram
Get thehistogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehistogram
kind.
-
dateHistogram
Get thedate_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_histogram
kind.
-
geotileGrid
Get thegeotile_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeotile_grid
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupCompositeAggregationSourceDeserializer
protected static void setupCompositeAggregationSourceDeserializer(DelegatingDeserializer<CompositeAggregationSource.Builder> op)
-