Class Aggregate
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.Aggregate
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<Aggregate.Kind,,Object> TaggedUnion<Aggregate.Kind,Object>
public class Aggregate
extends Object
implements OpenTaggedUnion<Aggregate.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExternallyTaggedUnion.TypedKeysDeserializer<Aggregate> -
Constructor Summary
ConstructorsConstructorDescriptionAggregate(AggregateVariant value) Build a custom plugin-definedAggregate, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsAggregate.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customAggregatedefined by a plugin?final Aggregate.Kind_kind()Get the of the kind of variant held by this object.Get theadjacency_matrixvariant value.Get theauto_date_histogramvariant value.avg()Get theavgvariant value.boxPlot()Get thebox_plotvariant value.Get thebucket_metric_valuevariant value.Get thecardinalityvariant value.children()Get thechildrenvariant value.Get thecompositevariant value.Get thedate_histogramvariant value.Get thedate_rangevariant value.Get thederivativevariant value.dterms()Get thedtermsvariant value.Get theextended_statsvariant value.Get theextended_stats_bucketvariant value.filter()Get thefiltervariant value.filters()Get thefiltersvariant value.Get thegeo_boundsvariant value.Get thegeo_centroidvariant value.Get thegeo_distancevariant value.Get thegeohash_gridvariant value.Get thegeohex_gridvariant value.geoLine()Get thegeo_linevariant value.Get thegeotile_gridvariant value.global()Get theglobalvariant value.Get thehdr_percentile_ranksvariant value.Get thehdr_percentilesvariant value.Get thehistogramvariant value.Get theinferencevariant value.ipPrefix()Get theip_prefixvariant value.ipRange()Get theip_rangevariant value.booleanIs this variant instance of kindadjacency_matrix?booleanIs this variant instance of kindauto_date_histogram?booleanisAvg()Is this variant instance of kindavg?booleanIs this variant instance of kindbox_plot?booleanIs this variant instance of kindbucket_metric_value?booleanIs this variant instance of kindcardinality?booleanIs this variant instance of kindchildren?booleanIs this variant instance of kindcomposite?booleanIs this variant instance of kinddate_histogram?booleanIs this variant instance of kinddate_range?booleanIs this variant instance of kindderivative?booleanisDterms()Is this variant instance of kinddterms?booleanIs this variant instance of kindextended_stats?booleanIs this variant instance of kindextended_stats_bucket?booleanisFilter()Is this variant instance of kindfilter?booleanIs this variant instance of kindfilters?booleanIs this variant instance of kindgeo_bounds?booleanIs this variant instance of kindgeo_centroid?booleanIs this variant instance of kindgeo_distance?booleanIs this variant instance of kindgeohash_grid?booleanIs this variant instance of kindgeohex_grid?booleanIs this variant instance of kindgeo_line?booleanIs this variant instance of kindgeotile_grid?booleanisGlobal()Is this variant instance of kindglobal?booleanIs this variant instance of kindhdr_percentile_ranks?booleanIs this variant instance of kindhdr_percentiles?booleanIs this variant instance of kindhistogram?booleanIs this variant instance of kindinference?booleanIs this variant instance of kindip_prefix?booleanIs this variant instance of kindip_range?booleanIs this variant instance of kindlrareterms?booleanisLterms()Is this variant instance of kindlterms?booleanIs this variant instance of kindmatrix_stats?booleanisMax()Is this variant instance of kindmax?booleanIs this variant instance of kindmedian_absolute_deviation?booleanisMin()Is this variant instance of kindmin?booleanIs this variant instance of kindmissing?booleanIs this variant instance of kindmulti_terms?booleanisNested()Is this variant instance of kindnested?booleanisParent()Is this variant instance of kindparent?booleanIs this variant instance of kindpercentiles_bucket?booleanisRange()Is this variant instance of kindrange?booleanisRate()Is this variant instance of kindrate?booleanIs this variant instance of kindreverse_nested?booleanIs this variant instance of kindsampler?booleanIs this variant instance of kindscripted_metric?booleanIs this variant instance of kindsiglterms?booleanIs this variant instance of kindsigsterms?booleanIs this variant instance of kindsimple_long_value?booleanIs this variant instance of kindsimple_value?booleanIs this variant instance of kindsrareterms?booleanisStats()Is this variant instance of kindstats?booleanIs this variant instance of kindstats_bucket?booleanisSterms()Is this variant instance of kindsterms?booleanIs this variant instance of kindstring_stats?booleanisSum()Is this variant instance of kindsum?booleanIs this variant instance of kindtdigest_percentile_ranks?booleanIs this variant instance of kindtdigest_percentiles?booleanIs this variant instance of kindtop_hits?booleanIs this variant instance of kindtop_metrics?booleanisTTest()Is this variant instance of kindt_test?booleanIs this variant instance of kindumrareterms?booleanIs this variant instance of kindumsigterms?booleanIs this variant instance of kindumterms?booleanIs this variant instance of kindunmapped_sampler?booleanIs this variant instance of kindvalue_count?booleanIs this variant instance of kindvariable_width_histogram?booleanIs this variant instance of kindweighted_avg?Get thelraretermsvariant value.lterms()Get theltermsvariant value.Get thematrix_statsvariant value.max()Get themaxvariant value.Get themedian_absolute_deviationvariant value.min()Get theminvariant value.missing()Get themissingvariant value.Get themulti_termsvariant value.nested()Get thenestedvariant value.static Aggregateparent()Get theparentvariant value.Get thepercentiles_bucketvariant value.range()Get therangevariant value.rate()Get theratevariant value.Get thereverse_nestedvariant value.sampler()Get thesamplervariant value.Get thescripted_metricvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Get thesigltermsvariant value.Get thesigstermsvariant value.Get thesimple_long_valuevariant value.Get thesimple_valuevariant value.Get thesraretermsvariant value.stats()Get thestatsvariant value.Get thestats_bucketvariant value.sterms()Get thestermsvariant value.Get thestring_statsvariant value.sum()Get thesumvariant value.Get thetdigest_percentile_ranksvariant value.Get thetdigest_percentilesvariant value.topHits()Get thetop_hitsvariant value.Get thetop_metricsvariant value.toString()tTest()Get thet_testvariant value.Get theumraretermsvariant value.Get theumsigtermsvariant value.umterms()Get theumtermsvariant value.Get theunmapped_samplervariant value.Get thevalue_countvariant value.Get thevariable_width_histogramvariant value.Get theweighted_avgvariant value.
-
Field Details
-
_TYPED_KEYS_DESERIALIZER
-
-
Constructor Details
-
Aggregate
-
Aggregate
Build a custom plugin-definedAggregate, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Aggregate.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Aggregate.Kind,Object>
-
of
-
isAdjacencyMatrix
public boolean isAdjacencyMatrix()Is this variant instance of kindadjacency_matrix? -
adjacencyMatrix
Get theadjacency_matrixvariant value.- Throws:
IllegalStateException- if the current variant is not of theadjacency_matrixkind.
-
isAutoDateHistogram
public boolean isAutoDateHistogram()Is this variant instance of kindauto_date_histogram? -
autoDateHistogram
Get theauto_date_histogramvariant value.- Throws:
IllegalStateException- if the current variant is not of theauto_date_histogramkind.
-
isAvg
public boolean isAvg()Is this variant instance of kindavg? -
avg
Get theavgvariant value.- Throws:
IllegalStateException- if the current variant is not of theavgkind.
-
isBoxPlot
public boolean isBoxPlot()Is this variant instance of kindbox_plot? -
boxPlot
Get thebox_plotvariant value.- Throws:
IllegalStateException- if the current variant is not of thebox_plotkind.
-
isBucketMetricValue
public boolean isBucketMetricValue()Is this variant instance of kindbucket_metric_value? -
bucketMetricValue
Get thebucket_metric_valuevariant value.- Throws:
IllegalStateException- if the current variant is not of thebucket_metric_valuekind.
-
isCardinality
public boolean isCardinality()Is this variant instance of kindcardinality? -
cardinality
Get thecardinalityvariant value.- Throws:
IllegalStateException- if the current variant is not of thecardinalitykind.
-
isChildren
public boolean isChildren()Is this variant instance of kindchildren? -
children
Get thechildrenvariant value.- Throws:
IllegalStateException- if the current variant is not of thechildrenkind.
-
isComposite
public boolean isComposite()Is this variant instance of kindcomposite? -
composite
Get thecompositevariant value.- Throws:
IllegalStateException- if the current variant is not of thecompositekind.
-
isSimpleLongValue
public boolean isSimpleLongValue()Is this variant instance of kindsimple_long_value? -
simpleLongValue
Get thesimple_long_valuevariant value.- Throws:
IllegalStateException- if the current variant is not of thesimple_long_valuekind.
-
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.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range? -
dateRange
Get thedate_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thedate_rangekind.
-
isDerivative
public boolean isDerivative()Is this variant instance of kindderivative? -
derivative
Get thederivativevariant value.- Throws:
IllegalStateException- if the current variant is not of thederivativekind.
-
isDterms
public boolean isDterms()Is this variant instance of kinddterms? -
dterms
Get thedtermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thedtermskind.
-
isExtendedStats
public boolean isExtendedStats()Is this variant instance of kindextended_stats? -
extendedStats
Get theextended_statsvariant value.- Throws:
IllegalStateException- if the current variant is not of theextended_statskind.
-
isExtendedStatsBucket
public boolean isExtendedStatsBucket()Is this variant instance of kindextended_stats_bucket? -
extendedStatsBucket
Get theextended_stats_bucketvariant value.- Throws:
IllegalStateException- if the current variant is not of theextended_stats_bucketkind.
-
isFilter
public boolean isFilter()Is this variant instance of kindfilter? -
filter
Get thefiltervariant value.- Throws:
IllegalStateException- if the current variant is not of thefilterkind.
-
isFilters
public boolean isFilters()Is this variant instance of kindfilters? -
filters
Get thefiltersvariant value.- Throws:
IllegalStateException- if the current variant is not of thefilterskind.
-
isGeoBounds
public boolean isGeoBounds()Is this variant instance of kindgeo_bounds? -
geoBounds
Get thegeo_boundsvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_boundskind.
-
isGeoCentroid
public boolean isGeoCentroid()Is this variant instance of kindgeo_centroid? -
geoCentroid
Get thegeo_centroidvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_centroidkind.
-
isGeoDistance
public boolean isGeoDistance()Is this variant instance of kindgeo_distance? -
geoDistance
Get thegeo_distancevariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_distancekind.
-
isGeohashGrid
public boolean isGeohashGrid()Is this variant instance of kindgeohash_grid? -
geohashGrid
Get thegeohash_gridvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeohash_gridkind.
-
isGeohexGrid
public boolean isGeohexGrid()Is this variant instance of kindgeohex_grid? -
geohexGrid
Get thegeohex_gridvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeohex_gridkind.
-
isGeoLine
public boolean isGeoLine()Is this variant instance of kindgeo_line? -
geoLine
Get thegeo_linevariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_linekind.
-
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.
-
isGlobal
public boolean isGlobal()Is this variant instance of kindglobal? -
global
Get theglobalvariant value.- Throws:
IllegalStateException- if the current variant is not of theglobalkind.
-
isHdrPercentileRanks
public boolean isHdrPercentileRanks()Is this variant instance of kindhdr_percentile_ranks? -
hdrPercentileRanks
Get thehdr_percentile_ranksvariant value.- Throws:
IllegalStateException- if the current variant is not of thehdr_percentile_rankskind.
-
isHdrPercentiles
public boolean isHdrPercentiles()Is this variant instance of kindhdr_percentiles? -
hdrPercentiles
Get thehdr_percentilesvariant value.- Throws:
IllegalStateException- if the current variant is not of thehdr_percentileskind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram? -
histogram
Get thehistogramvariant value.- Throws:
IllegalStateException- if the current variant is not of thehistogramkind.
-
isInference
public boolean isInference()Is this variant instance of kindinference? -
inference
Get theinferencevariant value.- Throws:
IllegalStateException- if the current variant is not of theinferencekind.
-
isIpPrefix
public boolean isIpPrefix()Is this variant instance of kindip_prefix? -
ipPrefix
Get theip_prefixvariant value.- Throws:
IllegalStateException- if the current variant is not of theip_prefixkind.
-
isIpRange
public boolean isIpRange()Is this variant instance of kindip_range? -
ipRange
Get theip_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of theip_rangekind.
-
isLrareterms
public boolean isLrareterms()Is this variant instance of kindlrareterms? -
lrareterms
Get thelraretermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thelraretermskind.
-
isLterms
public boolean isLterms()Is this variant instance of kindlterms? -
lterms
Get theltermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theltermskind.
-
isMatrixStats
public boolean isMatrixStats()Is this variant instance of kindmatrix_stats? -
matrixStats
Get thematrix_statsvariant value.- Throws:
IllegalStateException- if the current variant is not of thematrix_statskind.
-
isMax
public boolean isMax()Is this variant instance of kindmax? -
max
Get themaxvariant value.- Throws:
IllegalStateException- if the current variant is not of themaxkind.
-
isMedianAbsoluteDeviation
public boolean isMedianAbsoluteDeviation()Is this variant instance of kindmedian_absolute_deviation? -
medianAbsoluteDeviation
Get themedian_absolute_deviationvariant value.- Throws:
IllegalStateException- if the current variant is not of themedian_absolute_deviationkind.
-
isMin
public boolean isMin()Is this variant instance of kindmin? -
min
Get theminvariant value.- Throws:
IllegalStateException- if the current variant is not of theminkind.
-
isMissing
public boolean isMissing()Is this variant instance of kindmissing? -
missing
Get themissingvariant value.- Throws:
IllegalStateException- if the current variant is not of themissingkind.
-
isMultiTerms
public boolean isMultiTerms()Is this variant instance of kindmulti_terms? -
multiTerms
Get themulti_termsvariant value.- Throws:
IllegalStateException- if the current variant is not of themulti_termskind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
IllegalStateException- if the current variant is not of thenestedkind.
-
isParent
public boolean isParent()Is this variant instance of kindparent? -
parent
Get theparentvariant value.- Throws:
IllegalStateException- if the current variant is not of theparentkind.
-
isPercentilesBucket
public boolean isPercentilesBucket()Is this variant instance of kindpercentiles_bucket? -
percentilesBucket
Get thepercentiles_bucketvariant value.- Throws:
IllegalStateException- if the current variant is not of thepercentiles_bucketkind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not of therangekind.
-
isRate
public boolean isRate()Is this variant instance of kindrate? -
rate
Get theratevariant value.- Throws:
IllegalStateException- if the current variant is not of theratekind.
-
isReverseNested
public boolean isReverseNested()Is this variant instance of kindreverse_nested? -
reverseNested
Get thereverse_nestedvariant value.- Throws:
IllegalStateException- if the current variant is not of thereverse_nestedkind.
-
isSampler
public boolean isSampler()Is this variant instance of kindsampler? -
sampler
Get thesamplervariant value.- Throws:
IllegalStateException- if the current variant is not of thesamplerkind.
-
isScriptedMetric
public boolean isScriptedMetric()Is this variant instance of kindscripted_metric? -
scriptedMetric
Get thescripted_metricvariant value.- Throws:
IllegalStateException- if the current variant is not of thescripted_metrickind.
-
isSiglterms
public boolean isSiglterms()Is this variant instance of kindsiglterms? -
siglterms
Get thesigltermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thesigltermskind.
-
isSigsterms
public boolean isSigsterms()Is this variant instance of kindsigsterms? -
sigsterms
Get thesigstermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thesigstermskind.
-
isSimpleValue
public boolean isSimpleValue()Is this variant instance of kindsimple_value? -
simpleValue
Get thesimple_valuevariant value.- Throws:
IllegalStateException- if the current variant is not of thesimple_valuekind.
-
isStats
public boolean isStats()Is this variant instance of kindstats? -
stats
Get thestatsvariant value.- Throws:
IllegalStateException- if the current variant is not of thestatskind.
-
isStatsBucket
public boolean isStatsBucket()Is this variant instance of kindstats_bucket? -
statsBucket
Get thestats_bucketvariant value.- Throws:
IllegalStateException- if the current variant is not of thestats_bucketkind.
-
isSrareterms
public boolean isSrareterms()Is this variant instance of kindsrareterms? -
srareterms
Get thesraretermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thesraretermskind.
-
isStringStats
public boolean isStringStats()Is this variant instance of kindstring_stats? -
stringStats
Get thestring_statsvariant value.- Throws:
IllegalStateException- if the current variant is not of thestring_statskind.
-
isSterms
public boolean isSterms()Is this variant instance of kindsterms? -
sterms
Get thestermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thestermskind.
-
isSum
public boolean isSum()Is this variant instance of kindsum? -
sum
Get thesumvariant value.- Throws:
IllegalStateException- if the current variant is not of thesumkind.
-
isTdigestPercentileRanks
public boolean isTdigestPercentileRanks()Is this variant instance of kindtdigest_percentile_ranks? -
tdigestPercentileRanks
Get thetdigest_percentile_ranksvariant value.- Throws:
IllegalStateException- if the current variant is not of thetdigest_percentile_rankskind.
-
isTdigestPercentiles
public boolean isTdigestPercentiles()Is this variant instance of kindtdigest_percentiles? -
tdigestPercentiles
Get thetdigest_percentilesvariant value.- Throws:
IllegalStateException- if the current variant is not of thetdigest_percentileskind.
-
isTTest
public boolean isTTest()Is this variant instance of kindt_test? -
tTest
Get thet_testvariant value.- Throws:
IllegalStateException- if the current variant is not of thet_testkind.
-
isTopHits
public boolean isTopHits()Is this variant instance of kindtop_hits? -
topHits
Get thetop_hitsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetop_hitskind.
-
isTopMetrics
public boolean isTopMetrics()Is this variant instance of kindtop_metrics? -
topMetrics
Get thetop_metricsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetop_metricskind.
-
isUmrareterms
public boolean isUmrareterms()Is this variant instance of kindumrareterms? -
umrareterms
Get theumraretermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theumraretermskind.
-
isUnmappedSampler
public boolean isUnmappedSampler()Is this variant instance of kindunmapped_sampler? -
unmappedSampler
Get theunmapped_samplervariant value.- Throws:
IllegalStateException- if the current variant is not of theunmapped_samplerkind.
-
isUmsigterms
public boolean isUmsigterms()Is this variant instance of kindumsigterms? -
umsigterms
Get theumsigtermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theumsigtermskind.
-
isUmterms
public boolean isUmterms()Is this variant instance of kindumterms? -
umterms
Get theumtermsvariant value.- Throws:
IllegalStateException- if the current variant is not of theumtermskind.
-
isValueCount
public boolean isValueCount()Is this variant instance of kindvalue_count? -
valueCount
Get thevalue_countvariant value.- Throws:
IllegalStateException- if the current variant is not of thevalue_countkind.
-
isVariableWidthHistogram
public boolean isVariableWidthHistogram()Is this variant instance of kindvariable_width_histogram? -
variableWidthHistogram
Get thevariable_width_histogramvariant value.- Throws:
IllegalStateException- if the current variant is not of thevariable_width_histogramkind.
-
isWeightedAvg
public boolean isWeightedAvg()Is this variant instance of kindweighted_avg? -
weightedAvg
Get theweighted_avgvariant value.- Throws:
IllegalStateException- if the current variant is not of theweighted_avgkind.
-
_isCustom
public boolean _isCustom()Is this a customAggregatedefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsAggregate.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<Aggregate.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notAggregate.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-