Class Aggregate
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.Aggregate
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Aggregate.Kind,AggregateVariant>
public class Aggregate extends java.lang.Object implements TaggedUnion<Aggregate.Kind,AggregateVariant>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregate.Builderstatic classAggregate.KindAggregatevariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static ExternallyTaggedUnion.TypedKeysDeserializer<Aggregate>_TYPED_KEYS_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Aggregate(java.lang.String kind, JsonData value)Aggregate(AggregateVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateVariant_get()Aggregate.Kind_kind()Get the of the kind of variant held by this object.AdjacencyMatrixAggregateadjacencyMatrix()Get theadjacency_matrixvariant value.AutoDateHistogramAggregateautoDateHistogram()Get theauto_date_histogramvariant value.AvgAggregateavg()Get theavgvariant value.BoxPlotAggregateboxPlot()Get thebox_plotvariant value.BucketMetricValueAggregatebucketMetricValue()Get thebucket_metric_valuevariant value.CardinalityAggregatecardinality()Get thecardinalityvariant value.ChildrenAggregatechildren()Get thechildrenvariant value.CompositeAggregatecomposite()Get thecompositevariant value.DateHistogramAggregatedateHistogram()Get thedate_histogramvariant value.DateRangeAggregatedateRange()Get thedate_rangevariant value.DerivativeAggregatederivative()Get thederivativevariant value.DoubleTermsAggregatedterms()Get thedtermsvariant value.ExtendedStatsAggregateextendedStats()Get theextended_statsvariant value.ExtendedStatsBucketAggregateextendedStatsBucket()Get theextended_stats_bucketvariant value.FilterAggregatefilter()Get thefiltervariant value.FiltersAggregatefilters()Get thefiltersvariant value.GeoBoundsAggregategeoBounds()Get thegeo_boundsvariant value.GeoCentroidAggregategeoCentroid()Get thegeo_centroidvariant value.GeoDistanceAggregategeoDistance()Get thegeo_distancevariant value.GeoHashGridAggregategeohashGrid()Get thegeohash_gridvariant value.GeoLineAggregategeoLine()Get thegeo_linevariant value.GeoTileGridAggregategeotileGrid()Get thegeotile_gridvariant value.GlobalAggregateglobal()Get theglobalvariant value.HdrPercentileRanksAggregatehdrPercentileRanks()Get thehdr_percentile_ranksvariant value.HdrPercentilesAggregatehdrPercentiles()Get thehdr_percentilesvariant value.HistogramAggregatehistogram()Get thehistogramvariant value.InferenceAggregateinference()Get theinferencevariant value.IpRangeAggregateipRange()Get theip_rangevariant value.booleanisAdjacencyMatrix()Is this variant instance of kindadjacency_matrix?booleanisAutoDateHistogram()Is this variant instance of kindauto_date_histogram?booleanisAvg()Is this variant instance of kindavg?booleanisBoxPlot()Is this variant instance of kindbox_plot?booleanisBucketMetricValue()Is this variant instance of kindbucket_metric_value?booleanisCardinality()Is this variant instance of kindcardinality?booleanisChildren()Is this variant instance of kindchildren?booleanisComposite()Is this variant instance of kindcomposite?booleanisDateHistogram()Is this variant instance of kinddate_histogram?booleanisDateRange()Is this variant instance of kinddate_range?booleanisDerivative()Is this variant instance of kindderivative?booleanisDterms()Is this variant instance of kinddterms?booleanisExtendedStats()Is this variant instance of kindextended_stats?booleanisExtendedStatsBucket()Is this variant instance of kindextended_stats_bucket?booleanisFilter()Is this variant instance of kindfilter?booleanisFilters()Is this variant instance of kindfilters?booleanisGeoBounds()Is this variant instance of kindgeo_bounds?booleanisGeoCentroid()Is this variant instance of kindgeo_centroid?booleanisGeoDistance()Is this variant instance of kindgeo_distance?booleanisGeohashGrid()Is this variant instance of kindgeohash_grid?booleanisGeoLine()Is this variant instance of kindgeo_line?booleanisGeotileGrid()Is this variant instance of kindgeotile_grid?booleanisGlobal()Is this variant instance of kindglobal?booleanisHdrPercentileRanks()Is this variant instance of kindhdr_percentile_ranks?booleanisHdrPercentiles()Is this variant instance of kindhdr_percentiles?booleanisHistogram()Is this variant instance of kindhistogram?booleanisInference()Is this variant instance of kindinference?booleanisIpRange()Is this variant instance of kindip_range?booleanisLrareterms()Is this variant instance of kindlrareterms?booleanisLterms()Is this variant instance of kindlterms?booleanisMatrixStats()Is this variant instance of kindmatrix_stats?booleanisMax()Is this variant instance of kindmax?booleanisMedianAbsoluteDeviation()Is this variant instance of kindmedian_absolute_deviation?booleanisMin()Is this variant instance of kindmin?booleanisMissing()Is this variant instance of kindmissing?booleanisMultiTerms()Is this variant instance of kindmulti_terms?booleanisNested()Is this variant instance of kindnested?booleanisPercentilesBucket()Is this variant instance of kindpercentiles_bucket?booleanisRange()Is this variant instance of kindrange?booleanisRate()Is this variant instance of kindrate?booleanisReverseNested()Is this variant instance of kindreverse_nested?booleanisSampler()Is this variant instance of kindsampler?booleanisScriptedMetric()Is this variant instance of kindscripted_metric?booleanisSiglterms()Is this variant instance of kindsiglterms?booleanisSigsterms()Is this variant instance of kindsigsterms?booleanisSimpleLongValue()Is this variant instance of kindsimple_long_value?booleanisSimpleValue()Is this variant instance of kindsimple_value?booleanisSrareterms()Is this variant instance of kindsrareterms?booleanisStats()Is this variant instance of kindstats?booleanisStatsBucket()Is this variant instance of kindstats_bucket?booleanisSterms()Is this variant instance of kindsterms?booleanisStringStats()Is this variant instance of kindstring_stats?booleanisSum()Is this variant instance of kindsum?booleanisTdigestPercentileRanks()Is this variant instance of kindtdigest_percentile_ranks?booleanisTdigestPercentiles()Is this variant instance of kindtdigest_percentiles?booleanisTopHits()Is this variant instance of kindtop_hits?booleanisTopMetrics()Is this variant instance of kindtop_metrics?booleanisTTest()Is this variant instance of kindt_test?booleanisUmrareterms()Is this variant instance of kindumrareterms?booleanisUmsigterms()Is this variant instance of kindumsigterms?booleanisUmterms()Is this variant instance of kindumterms?booleanisValueCount()Is this variant instance of kindvalue_count?booleanisVariableWidthHistogram()Is this variant instance of kindvariable_width_histogram?booleanisWeightedAvg()Is this variant instance of kindweighted_avg?LongRareTermsAggregatelrareterms()Get thelraretermsvariant value.LongTermsAggregatelterms()Get theltermsvariant value.MatrixStatsAggregatematrixStats()Get thematrix_statsvariant value.MaxAggregatemax()Get themaxvariant value.MedianAbsoluteDeviationAggregatemedianAbsoluteDeviation()Get themedian_absolute_deviationvariant value.MinAggregatemin()Get theminvariant value.MissingAggregatemissing()Get themissingvariant value.MultiTermsAggregatemultiTerms()Get themulti_termsvariant value.NestedAggregatenested()Get thenestedvariant value.static Aggregateof(java.util.function.Function<Aggregate.Builder,ObjectBuilder<Aggregate>> fn)PercentilesBucketAggregatepercentilesBucket()Get thepercentiles_bucketvariant value.RangeAggregaterange()Get therangevariant value.RateAggregaterate()Get theratevariant value.ReverseNestedAggregatereverseNested()Get thereverse_nestedvariant value.SamplerAggregatesampler()Get thesamplervariant value.ScriptedMetricAggregatescriptedMetric()Get thescripted_metricvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)SignificantLongTermsAggregatesiglterms()Get thesigltermsvariant value.SignificantStringTermsAggregatesigsterms()Get thesigstermsvariant value.CumulativeCardinalityAggregatesimpleLongValue()Get thesimple_long_valuevariant value.SimpleValueAggregatesimpleValue()Get thesimple_valuevariant value.StringRareTermsAggregatesrareterms()Get thesraretermsvariant value.StatsAggregatestats()Get thestatsvariant value.StatsBucketAggregatestatsBucket()Get thestats_bucketvariant value.StringTermsAggregatesterms()Get thestermsvariant value.StringStatsAggregatestringStats()Get thestring_statsvariant value.SumAggregatesum()Get thesumvariant value.TDigestPercentileRanksAggregatetdigestPercentileRanks()Get thetdigest_percentile_ranksvariant value.TDigestPercentilesAggregatetdigestPercentiles()Get thetdigest_percentilesvariant value.TopHitsAggregatetopHits()Get thetop_hitsvariant value.TopMetricsAggregatetopMetrics()Get thetop_metricsvariant value.TTestAggregatetTest()Get thet_testvariant value.UnmappedRareTermsAggregateumrareterms()Get theumraretermsvariant value.UnmappedSignificantTermsAggregateumsigterms()Get theumsigtermsvariant value.UnmappedTermsAggregateumterms()Get theumtermsvariant value.ValueCountAggregatevalueCount()Get thevalue_countvariant value.VariableWidthHistogramAggregatevariableWidthHistogram()Get thevariable_width_histogramvariant value.WeightedAvgAggregateweightedAvg()Get theweighted_avgvariant value.
-
-
-
Field Detail
-
_TYPED_KEYS_DESERIALIZER
public static final ExternallyTaggedUnion.TypedKeysDeserializer<Aggregate> _TYPED_KEYS_DESERIALIZER
-
-
Constructor Detail
-
Aggregate
public Aggregate(AggregateVariant value)
-
Aggregate
public Aggregate(java.lang.String kind, JsonData value)
-
-
Method Detail
-
_kind
public final Aggregate.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Aggregate.Kind,AggregateVariant>- Returns:
- the variant kind
-
_get
public final AggregateVariant _get()
- Specified by:
_getin interfaceTaggedUnion<Aggregate.Kind,AggregateVariant>
-
of
public static Aggregate of(java.util.function.Function<Aggregate.Builder,ObjectBuilder<Aggregate>> fn)
-
isAdjacencyMatrix
public boolean isAdjacencyMatrix()
Is this variant instance of kindadjacency_matrix?
-
adjacencyMatrix
public AdjacencyMatrixAggregate adjacencyMatrix()
Get theadjacency_matrixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theadjacency_matrixkind.
-
isAutoDateHistogram
public boolean isAutoDateHistogram()
Is this variant instance of kindauto_date_histogram?
-
autoDateHistogram
public AutoDateHistogramAggregate autoDateHistogram()
Get theauto_date_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theauto_date_histogramkind.
-
isAvg
public boolean isAvg()
Is this variant instance of kindavg?
-
avg
public AvgAggregate avg()
Get theavgvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theavgkind.
-
isBoxPlot
public boolean isBoxPlot()
Is this variant instance of kindbox_plot?
-
boxPlot
public BoxPlotAggregate boxPlot()
Get thebox_plotvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebox_plotkind.
-
isBucketMetricValue
public boolean isBucketMetricValue()
Is this variant instance of kindbucket_metric_value?
-
bucketMetricValue
public BucketMetricValueAggregate bucketMetricValue()
Get thebucket_metric_valuevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_metric_valuekind.
-
isCardinality
public boolean isCardinality()
Is this variant instance of kindcardinality?
-
cardinality
public CardinalityAggregate cardinality()
Get thecardinalityvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecardinalitykind.
-
isChildren
public boolean isChildren()
Is this variant instance of kindchildren?
-
children
public ChildrenAggregate children()
Get thechildrenvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechildrenkind.
-
isComposite
public boolean isComposite()
Is this variant instance of kindcomposite?
-
composite
public CompositeAggregate composite()
Get thecompositevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecompositekind.
-
isSimpleLongValue
public boolean isSimpleLongValue()
Is this variant instance of kindsimple_long_value?
-
simpleLongValue
public CumulativeCardinalityAggregate simpleLongValue()
Get thesimple_long_valuevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimple_long_valuekind.
-
isDateHistogram
public boolean isDateHistogram()
Is this variant instance of kinddate_histogram?
-
dateHistogram
public DateHistogramAggregate dateHistogram()
Get thedate_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_histogramkind.
-
isDateRange
public boolean isDateRange()
Is this variant instance of kinddate_range?
-
dateRange
public DateRangeAggregate dateRange()
Get thedate_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_rangekind.
-
isDerivative
public boolean isDerivative()
Is this variant instance of kindderivative?
-
derivative
public DerivativeAggregate derivative()
Get thederivativevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thederivativekind.
-
isDterms
public boolean isDterms()
Is this variant instance of kinddterms?
-
dterms
public DoubleTermsAggregate dterms()
Get thedtermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedtermskind.
-
isExtendedStats
public boolean isExtendedStats()
Is this variant instance of kindextended_stats?
-
extendedStats
public ExtendedStatsAggregate extendedStats()
Get theextended_statsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theextended_statskind.
-
isExtendedStatsBucket
public boolean isExtendedStatsBucket()
Is this variant instance of kindextended_stats_bucket?
-
extendedStatsBucket
public ExtendedStatsBucketAggregate extendedStatsBucket()
Get theextended_stats_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theextended_stats_bucketkind.
-
isFilter
public boolean isFilter()
Is this variant instance of kindfilter?
-
filter
public FilterAggregate filter()
Get thefiltervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefilterkind.
-
isFilters
public boolean isFilters()
Is this variant instance of kindfilters?
-
filters
public FiltersAggregate filters()
Get thefiltersvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefilterskind.
-
isGeoBounds
public boolean isGeoBounds()
Is this variant instance of kindgeo_bounds?
-
geoBounds
public GeoBoundsAggregate geoBounds()
Get thegeo_boundsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_boundskind.
-
isGeoCentroid
public boolean isGeoCentroid()
Is this variant instance of kindgeo_centroid?
-
geoCentroid
public GeoCentroidAggregate geoCentroid()
Get thegeo_centroidvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_centroidkind.
-
isGeoDistance
public boolean isGeoDistance()
Is this variant instance of kindgeo_distance?
-
geoDistance
public GeoDistanceAggregate geoDistance()
Get thegeo_distancevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_distancekind.
-
isGeohashGrid
public boolean isGeohashGrid()
Is this variant instance of kindgeohash_grid?
-
geohashGrid
public GeoHashGridAggregate geohashGrid()
Get thegeohash_gridvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeohash_gridkind.
-
isGeoLine
public boolean isGeoLine()
Is this variant instance of kindgeo_line?
-
geoLine
public GeoLineAggregate geoLine()
Get thegeo_linevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_linekind.
-
isGeotileGrid
public boolean isGeotileGrid()
Is this variant instance of kindgeotile_grid?
-
geotileGrid
public GeoTileGridAggregate geotileGrid()
Get thegeotile_gridvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeotile_gridkind.
-
isGlobal
public boolean isGlobal()
Is this variant instance of kindglobal?
-
global
public GlobalAggregate global()
Get theglobalvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theglobalkind.
-
isHdrPercentileRanks
public boolean isHdrPercentileRanks()
Is this variant instance of kindhdr_percentile_ranks?
-
hdrPercentileRanks
public HdrPercentileRanksAggregate hdrPercentileRanks()
Get thehdr_percentile_ranksvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehdr_percentile_rankskind.
-
isHdrPercentiles
public boolean isHdrPercentiles()
Is this variant instance of kindhdr_percentiles?
-
hdrPercentiles
public HdrPercentilesAggregate hdrPercentiles()
Get thehdr_percentilesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehdr_percentileskind.
-
isHistogram
public boolean isHistogram()
Is this variant instance of kindhistogram?
-
histogram
public HistogramAggregate histogram()
Get thehistogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
isInference
public boolean isInference()
Is this variant instance of kindinference?
-
inference
public InferenceAggregate inference()
Get theinferencevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theinferencekind.
-
isIpRange
public boolean isIpRange()
Is this variant instance of kindip_range?
-
ipRange
public IpRangeAggregate ipRange()
Get theip_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theip_rangekind.
-
isLrareterms
public boolean isLrareterms()
Is this variant instance of kindlrareterms?
-
lrareterms
public LongRareTermsAggregate lrareterms()
Get thelraretermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelraretermskind.
-
isLterms
public boolean isLterms()
Is this variant instance of kindlterms?
-
lterms
public LongTermsAggregate lterms()
Get theltermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theltermskind.
-
isMatrixStats
public boolean isMatrixStats()
Is this variant instance of kindmatrix_stats?
-
matrixStats
public MatrixStatsAggregate matrixStats()
Get thematrix_statsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematrix_statskind.
-
isMax
public boolean isMax()
Is this variant instance of kindmax?
-
max
public MaxAggregate max()
Get themaxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themaxkind.
-
isMedianAbsoluteDeviation
public boolean isMedianAbsoluteDeviation()
Is this variant instance of kindmedian_absolute_deviation?
-
medianAbsoluteDeviation
public MedianAbsoluteDeviationAggregate medianAbsoluteDeviation()
Get themedian_absolute_deviationvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themedian_absolute_deviationkind.
-
isMin
public boolean isMin()
Is this variant instance of kindmin?
-
min
public MinAggregate min()
Get theminvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theminkind.
-
isMissing
public boolean isMissing()
Is this variant instance of kindmissing?
-
missing
public MissingAggregate missing()
Get themissingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themissingkind.
-
isMultiTerms
public boolean isMultiTerms()
Is this variant instance of kindmulti_terms?
-
multiTerms
public MultiTermsAggregate multiTerms()
Get themulti_termsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themulti_termskind.
-
isNested
public boolean isNested()
Is this variant instance of kindnested?
-
nested
public NestedAggregate nested()
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
isPercentilesBucket
public boolean isPercentilesBucket()
Is this variant instance of kindpercentiles_bucket?
-
percentilesBucket
public PercentilesBucketAggregate percentilesBucket()
Get thepercentiles_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercentiles_bucketkind.
-
isRange
public boolean isRange()
Is this variant instance of kindrange?
-
range
public RangeAggregate range()
Get therangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therangekind.
-
isRate
public boolean isRate()
Is this variant instance of kindrate?
-
rate
public RateAggregate rate()
Get theratevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theratekind.
-
isReverseNested
public boolean isReverseNested()
Is this variant instance of kindreverse_nested?
-
reverseNested
public ReverseNestedAggregate reverseNested()
Get thereverse_nestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thereverse_nestedkind.
-
isSampler
public boolean isSampler()
Is this variant instance of kindsampler?
-
sampler
public SamplerAggregate sampler()
Get thesamplervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesamplerkind.
-
isScriptedMetric
public boolean isScriptedMetric()
Is this variant instance of kindscripted_metric?
-
scriptedMetric
public ScriptedMetricAggregate scriptedMetric()
Get thescripted_metricvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescripted_metrickind.
-
isSiglterms
public boolean isSiglterms()
Is this variant instance of kindsiglterms?
-
siglterms
public SignificantLongTermsAggregate siglterms()
Get thesigltermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesigltermskind.
-
isSigsterms
public boolean isSigsterms()
Is this variant instance of kindsigsterms?
-
sigsterms
public SignificantStringTermsAggregate sigsterms()
Get thesigstermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesigstermskind.
-
isSimpleValue
public boolean isSimpleValue()
Is this variant instance of kindsimple_value?
-
simpleValue
public SimpleValueAggregate simpleValue()
Get thesimple_valuevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimple_valuekind.
-
isStats
public boolean isStats()
Is this variant instance of kindstats?
-
stats
public StatsAggregate stats()
Get thestatsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestatskind.
-
isStatsBucket
public boolean isStatsBucket()
Is this variant instance of kindstats_bucket?
-
statsBucket
public StatsBucketAggregate statsBucket()
Get thestats_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestats_bucketkind.
-
isSrareterms
public boolean isSrareterms()
Is this variant instance of kindsrareterms?
-
srareterms
public StringRareTermsAggregate srareterms()
Get thesraretermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesraretermskind.
-
isStringStats
public boolean isStringStats()
Is this variant instance of kindstring_stats?
-
stringStats
public StringStatsAggregate stringStats()
Get thestring_statsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestring_statskind.
-
isSterms
public boolean isSterms()
Is this variant instance of kindsterms?
-
sterms
public StringTermsAggregate sterms()
Get thestermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestermskind.
-
isSum
public boolean isSum()
Is this variant instance of kindsum?
-
sum
public SumAggregate sum()
Get thesumvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesumkind.
-
isTdigestPercentileRanks
public boolean isTdigestPercentileRanks()
Is this variant instance of kindtdigest_percentile_ranks?
-
tdigestPercentileRanks
public TDigestPercentileRanksAggregate tdigestPercentileRanks()
Get thetdigest_percentile_ranksvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetdigest_percentile_rankskind.
-
isTdigestPercentiles
public boolean isTdigestPercentiles()
Is this variant instance of kindtdigest_percentiles?
-
tdigestPercentiles
public TDigestPercentilesAggregate tdigestPercentiles()
Get thetdigest_percentilesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetdigest_percentileskind.
-
isTTest
public boolean isTTest()
Is this variant instance of kindt_test?
-
tTest
public TTestAggregate tTest()
Get thet_testvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thet_testkind.
-
isTopHits
public boolean isTopHits()
Is this variant instance of kindtop_hits?
-
topHits
public TopHitsAggregate topHits()
Get thetop_hitsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetop_hitskind.
-
isTopMetrics
public boolean isTopMetrics()
Is this variant instance of kindtop_metrics?
-
topMetrics
public TopMetricsAggregate topMetrics()
Get thetop_metricsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetop_metricskind.
-
isUmrareterms
public boolean isUmrareterms()
Is this variant instance of kindumrareterms?
-
umrareterms
public UnmappedRareTermsAggregate umrareterms()
Get theumraretermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theumraretermskind.
-
isUmsigterms
public boolean isUmsigterms()
Is this variant instance of kindumsigterms?
-
umsigterms
public UnmappedSignificantTermsAggregate umsigterms()
Get theumsigtermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theumsigtermskind.
-
isUmterms
public boolean isUmterms()
Is this variant instance of kindumterms?
-
umterms
public UnmappedTermsAggregate umterms()
Get theumtermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theumtermskind.
-
isValueCount
public boolean isValueCount()
Is this variant instance of kindvalue_count?
-
valueCount
public ValueCountAggregate valueCount()
Get thevalue_countvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevalue_countkind.
-
isVariableWidthHistogram
public boolean isVariableWidthHistogram()
Is this variant instance of kindvariable_width_histogram?
-
variableWidthHistogram
public VariableWidthHistogramAggregate variableWidthHistogram()
Get thevariable_width_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevariable_width_histogramkind.
-
isWeightedAvg
public boolean isWeightedAvg()
Is this variant instance of kindweighted_avg?
-
weightedAvg
public WeightedAvgAggregate weightedAvg()
Get theweighted_avgvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theweighted_avgkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-