Class Aggregation
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.Aggregation
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Aggregation.Kind,java.lang.Object>
@JsonpDeserializable public class Aggregation extends java.lang.Object implements TaggedUnion<Aggregation.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregation.Builderstatic classAggregation.KindAggregationvariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Aggregation>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Aggregation(AggregationVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()Aggregation.Kind_kind()Get the of the kind of variant held by this object.AdjacencyMatrixAggregationadjacencyMatrix()Get theadjacency_matrixvariant value.java.util.Map<java.lang.String,Aggregation>aggregations()Sub-aggregations for this aggregation.AutoDateHistogramAggregationautoDateHistogram()Get theauto_date_histogramvariant value.AverageAggregationavg()Get theavgvariant value.AverageBucketAggregationavgBucket()Get theavg_bucketvariant value.BoxplotAggregationboxplot()Get theboxplotvariant value.BucketScriptAggregationbucketScript()Get thebucket_scriptvariant value.BucketSelectorAggregationbucketSelector()Get thebucket_selectorvariant value.BucketSortAggregationbucketSort()Get thebucket_sortvariant value.CardinalityAggregationcardinality()Get thecardinalityvariant value.ChildrenAggregationchildren()Get thechildrenvariant value.CompositeAggregationcomposite()Get thecompositevariant value.CumulativeCardinalityAggregationcumulativeCardinality()Get thecumulative_cardinalityvariant value.CumulativeSumAggregationcumulativeSum()Get thecumulative_sumvariant value.DateHistogramAggregationdateHistogram()Get thedate_histogramvariant value.DateRangeAggregationdateRange()Get thedate_rangevariant value.DerivativeAggregationderivative()Get thederivativevariant value.DiversifiedSamplerAggregationdiversifiedSampler()Get thediversified_samplervariant value.ExtendedStatsAggregationextendedStats()Get theextended_statsvariant value.ExtendedStatsBucketAggregationextendedStatsBucket()Get theextended_stats_bucketvariant value.Queryfilter()Get thefiltervariant value.FiltersAggregationfilters()Get thefiltersvariant value.GeoBoundsAggregationgeoBounds()Get thegeo_boundsvariant value.GeoCentroidAggregationgeoCentroid()Get thegeo_centroidvariant value.GeoDistanceAggregationgeoDistance()Get thegeo_distancevariant value.GeoHashGridAggregationgeohashGrid()Get thegeohash_gridvariant value.GeoLineAggregationgeoLine()Get thegeo_linevariant value.GeoTileGridAggregationgeotileGrid()Get thegeotile_gridvariant value.GlobalAggregationglobal()Get theglobalvariant value.HistogramAggregationhistogram()Get thehistogramvariant value.InferenceAggregationinference()Get theinferencevariant value.IpRangeAggregationipRange()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?booleanisAvgBucket()Is this variant instance of kindavg_bucket?booleanisBoxplot()Is this variant instance of kindboxplot?booleanisBucketScript()Is this variant instance of kindbucket_script?booleanisBucketSelector()Is this variant instance of kindbucket_selector?booleanisBucketSort()Is this variant instance of kindbucket_sort?booleanisCardinality()Is this variant instance of kindcardinality?booleanisChildren()Is this variant instance of kindchildren?booleanisComposite()Is this variant instance of kindcomposite?booleanisCumulativeCardinality()Is this variant instance of kindcumulative_cardinality?booleanisCumulativeSum()Is this variant instance of kindcumulative_sum?booleanisDateHistogram()Is this variant instance of kinddate_histogram?booleanisDateRange()Is this variant instance of kinddate_range?booleanisDerivative()Is this variant instance of kindderivative?booleanisDiversifiedSampler()Is this variant instance of kinddiversified_sampler?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?booleanisHistogram()Is this variant instance of kindhistogram?booleanisInference()Is this variant instance of kindinference?booleanisIpRange()Is this variant instance of kindip_range?booleanisMatrixStats()Is this variant instance of kindmatrix_stats?booleanisMax()Is this variant instance of kindmax?booleanisMaxBucket()Is this variant instance of kindmax_bucket?booleanisMedianAbsoluteDeviation()Is this variant instance of kindmedian_absolute_deviation?booleanisMin()Is this variant instance of kindmin?booleanisMinBucket()Is this variant instance of kindmin_bucket?booleanisMissing()Is this variant instance of kindmissing?booleanisMovingAvg()Is this variant instance of kindmoving_avg?booleanisMovingFn()Is this variant instance of kindmoving_fn?booleanisMovingPercentiles()Is this variant instance of kindmoving_percentiles?booleanisMultiTerms()Is this variant instance of kindmulti_terms?booleanisNested()Is this variant instance of kindnested?booleanisNormalize()Is this variant instance of kindnormalize?booleanisParent()Is this variant instance of kindparent?booleanisPercentileRanks()Is this variant instance of kindpercentile_ranks?booleanisPercentiles()Is this variant instance of kindpercentiles?booleanisPercentilesBucket()Is this variant instance of kindpercentiles_bucket?booleanisRange()Is this variant instance of kindrange?booleanisRareTerms()Is this variant instance of kindrare_terms?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?booleanisSerialDiff()Is this variant instance of kindserial_diff?booleanisSignificantTerms()Is this variant instance of kindsignificant_terms?booleanisSignificantText()Is this variant instance of kindsignificant_text?booleanisStats()Is this variant instance of kindstats?booleanisStatsBucket()Is this variant instance of kindstats_bucket?booleanisStringStats()Is this variant instance of kindstring_stats?booleanisSum()Is this variant instance of kindsum?booleanisSumBucket()Is this variant instance of kindsum_bucket?booleanisTerms()Is this variant instance of kindterms?booleanisTopHits()Is this variant instance of kindtop_hits?booleanisTopMetrics()Is this variant instance of kindtop_metrics?booleanisTTest()Is this variant instance of kindt_test?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?MatrixStatsAggregationmatrixStats()Get thematrix_statsvariant value.MaxAggregationmax()Get themaxvariant value.MaxBucketAggregationmaxBucket()Get themax_bucketvariant value.MedianAbsoluteDeviationAggregationmedianAbsoluteDeviation()Get themedian_absolute_deviationvariant value.java.util.Map<java.lang.String,JsonData>meta()API name:metaMinAggregationmin()Get theminvariant value.MinBucketAggregationminBucket()Get themin_bucketvariant value.MissingAggregationmissing()Get themissingvariant value.MovingAverageAggregationmovingAvg()Get themoving_avgvariant value.MovingFunctionAggregationmovingFn()Get themoving_fnvariant value.MovingPercentilesAggregationmovingPercentiles()Get themoving_percentilesvariant value.MultiTermsAggregationmultiTerms()Get themulti_termsvariant value.NestedAggregationnested()Get thenestedvariant value.NormalizeAggregationnormalize()Get thenormalizevariant value.static Aggregationof(java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)ParentAggregationparent()Get theparentvariant value.PercentileRanksAggregationpercentileRanks()Get thepercentile_ranksvariant value.PercentilesAggregationpercentiles()Get thepercentilesvariant value.PercentilesBucketAggregationpercentilesBucket()Get thepercentiles_bucketvariant value.RangeAggregationrange()Get therangevariant value.RareTermsAggregationrareTerms()Get therare_termsvariant value.RateAggregationrate()Get theratevariant value.ReverseNestedAggregationreverseNested()Get thereverse_nestedvariant value.SamplerAggregationsampler()Get thesamplervariant value.ScriptedMetricAggregationscriptedMetric()Get thescripted_metricvariant value.SerialDifferencingAggregationserialDiff()Get theserial_diffvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupAggregationDeserializer(ObjectDeserializer<Aggregation.Builder> op)SignificantTermsAggregationsignificantTerms()Get thesignificant_termsvariant value.SignificantTextAggregationsignificantText()Get thesignificant_textvariant value.StatsAggregationstats()Get thestatsvariant value.StatsBucketAggregationstatsBucket()Get thestats_bucketvariant value.StringStatsAggregationstringStats()Get thestring_statsvariant value.SumAggregationsum()Get thesumvariant value.SumBucketAggregationsumBucket()Get thesum_bucketvariant value.TermsAggregationterms()Get thetermsvariant value.TopHitsAggregationtopHits()Get thetop_hitsvariant value.TopMetricsAggregationtopMetrics()Get thetop_metricsvariant value.TTestAggregationtTest()Get thet_testvariant value.ValueCountAggregationvalueCount()Get thevalue_countvariant value.VariableWidthHistogramAggregationvariableWidthHistogram()Get thevariable_width_histogramvariant value.WeightedAverageAggregationweightedAvg()Get theweighted_avgvariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Aggregation> _DESERIALIZER
-
-
Constructor Detail
-
Aggregation
public Aggregation(AggregationVariant value)
-
-
Method Detail
-
_kind
public final Aggregation.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Aggregation.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<Aggregation.Kind,java.lang.Object>
-
of
public static Aggregation of(java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)
-
aggregations
public final java.util.Map<java.lang.String,Aggregation> aggregations()
Sub-aggregations for this aggregation. Only applies to bucket aggregations.API name:
aggregations
-
meta
public final java.util.Map<java.lang.String,JsonData> meta()
API name:meta
-
isAdjacencyMatrix
public boolean isAdjacencyMatrix()
Is this variant instance of kindadjacency_matrix?
-
adjacencyMatrix
public AdjacencyMatrixAggregation 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 AutoDateHistogramAggregation 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 AverageAggregation avg()
Get theavgvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theavgkind.
-
isAvgBucket
public boolean isAvgBucket()
Is this variant instance of kindavg_bucket?
-
avgBucket
public AverageBucketAggregation avgBucket()
Get theavg_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theavg_bucketkind.
-
isBoxplot
public boolean isBoxplot()
Is this variant instance of kindboxplot?
-
boxplot
public BoxplotAggregation boxplot()
Get theboxplotvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theboxplotkind.
-
isBucketScript
public boolean isBucketScript()
Is this variant instance of kindbucket_script?
-
bucketScript
public BucketScriptAggregation bucketScript()
Get thebucket_scriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_scriptkind.
-
isBucketSelector
public boolean isBucketSelector()
Is this variant instance of kindbucket_selector?
-
bucketSelector
public BucketSelectorAggregation bucketSelector()
Get thebucket_selectorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_selectorkind.
-
isBucketSort
public boolean isBucketSort()
Is this variant instance of kindbucket_sort?
-
bucketSort
public BucketSortAggregation bucketSort()
Get thebucket_sortvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_sortkind.
-
isCardinality
public boolean isCardinality()
Is this variant instance of kindcardinality?
-
cardinality
public CardinalityAggregation 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 ChildrenAggregation 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 CompositeAggregation composite()
Get thecompositevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecompositekind.
-
isCumulativeCardinality
public boolean isCumulativeCardinality()
Is this variant instance of kindcumulative_cardinality?
-
cumulativeCardinality
public CumulativeCardinalityAggregation cumulativeCardinality()
Get thecumulative_cardinalityvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecumulative_cardinalitykind.
-
isCumulativeSum
public boolean isCumulativeSum()
Is this variant instance of kindcumulative_sum?
-
cumulativeSum
public CumulativeSumAggregation cumulativeSum()
Get thecumulative_sumvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecumulative_sumkind.
-
isDateHistogram
public boolean isDateHistogram()
Is this variant instance of kinddate_histogram?
-
dateHistogram
public DateHistogramAggregation 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 DateRangeAggregation 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 DerivativeAggregation derivative()
Get thederivativevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thederivativekind.
-
isDiversifiedSampler
public boolean isDiversifiedSampler()
Is this variant instance of kinddiversified_sampler?
-
diversifiedSampler
public DiversifiedSamplerAggregation diversifiedSampler()
Get thediversified_samplervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thediversified_samplerkind.
-
isExtendedStats
public boolean isExtendedStats()
Is this variant instance of kindextended_stats?
-
extendedStats
public ExtendedStatsAggregation 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 ExtendedStatsBucketAggregation 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 Query 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 FiltersAggregation 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 GeoBoundsAggregation 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 GeoCentroidAggregation 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 GeoDistanceAggregation 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 GeoHashGridAggregation 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 GeoLineAggregation 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 GeoTileGridAggregation 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 GlobalAggregation global()
Get theglobalvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theglobalkind.
-
isHistogram
public boolean isHistogram()
Is this variant instance of kindhistogram?
-
histogram
public HistogramAggregation histogram()
Get thehistogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
isIpRange
public boolean isIpRange()
Is this variant instance of kindip_range?
-
ipRange
public IpRangeAggregation ipRange()
Get theip_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theip_rangekind.
-
isInference
public boolean isInference()
Is this variant instance of kindinference?
-
inference
public InferenceAggregation inference()
Get theinferencevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theinferencekind.
-
isMatrixStats
public boolean isMatrixStats()
Is this variant instance of kindmatrix_stats?
-
matrixStats
public MatrixStatsAggregation 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 MaxAggregation max()
Get themaxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themaxkind.
-
isMaxBucket
public boolean isMaxBucket()
Is this variant instance of kindmax_bucket?
-
maxBucket
public MaxBucketAggregation maxBucket()
Get themax_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themax_bucketkind.
-
isMedianAbsoluteDeviation
public boolean isMedianAbsoluteDeviation()
Is this variant instance of kindmedian_absolute_deviation?
-
medianAbsoluteDeviation
public MedianAbsoluteDeviationAggregation 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 MinAggregation min()
Get theminvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theminkind.
-
isMinBucket
public boolean isMinBucket()
Is this variant instance of kindmin_bucket?
-
minBucket
public MinBucketAggregation minBucket()
Get themin_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themin_bucketkind.
-
isMissing
public boolean isMissing()
Is this variant instance of kindmissing?
-
missing
public MissingAggregation missing()
Get themissingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themissingkind.
-
isMovingAvg
public boolean isMovingAvg()
Is this variant instance of kindmoving_avg?
-
movingAvg
public MovingAverageAggregation movingAvg()
Get themoving_avgvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themoving_avgkind.
-
isMovingPercentiles
public boolean isMovingPercentiles()
Is this variant instance of kindmoving_percentiles?
-
movingPercentiles
public MovingPercentilesAggregation movingPercentiles()
Get themoving_percentilesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themoving_percentileskind.
-
isMovingFn
public boolean isMovingFn()
Is this variant instance of kindmoving_fn?
-
movingFn
public MovingFunctionAggregation movingFn()
Get themoving_fnvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themoving_fnkind.
-
isMultiTerms
public boolean isMultiTerms()
Is this variant instance of kindmulti_terms?
-
multiTerms
public MultiTermsAggregation 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 NestedAggregation nested()
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
isNormalize
public boolean isNormalize()
Is this variant instance of kindnormalize?
-
normalize
public NormalizeAggregation normalize()
Get thenormalizevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenormalizekind.
-
isParent
public boolean isParent()
Is this variant instance of kindparent?
-
parent
public ParentAggregation parent()
Get theparentvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theparentkind.
-
isPercentileRanks
public boolean isPercentileRanks()
Is this variant instance of kindpercentile_ranks?
-
percentileRanks
public PercentileRanksAggregation percentileRanks()
Get thepercentile_ranksvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercentile_rankskind.
-
isPercentiles
public boolean isPercentiles()
Is this variant instance of kindpercentiles?
-
percentiles
public PercentilesAggregation percentiles()
Get thepercentilesvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercentileskind.
-
isPercentilesBucket
public boolean isPercentilesBucket()
Is this variant instance of kindpercentiles_bucket?
-
percentilesBucket
public PercentilesBucketAggregation 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 RangeAggregation range()
Get therangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therangekind.
-
isRareTerms
public boolean isRareTerms()
Is this variant instance of kindrare_terms?
-
rareTerms
public RareTermsAggregation rareTerms()
Get therare_termsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therare_termskind.
-
isRate
public boolean isRate()
Is this variant instance of kindrate?
-
rate
public RateAggregation 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 ReverseNestedAggregation 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 SamplerAggregation 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 ScriptedMetricAggregation scriptedMetric()
Get thescripted_metricvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescripted_metrickind.
-
isSerialDiff
public boolean isSerialDiff()
Is this variant instance of kindserial_diff?
-
serialDiff
public SerialDifferencingAggregation serialDiff()
Get theserial_diffvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theserial_diffkind.
-
isSignificantTerms
public boolean isSignificantTerms()
Is this variant instance of kindsignificant_terms?
-
significantTerms
public SignificantTermsAggregation significantTerms()
Get thesignificant_termsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesignificant_termskind.
-
isSignificantText
public boolean isSignificantText()
Is this variant instance of kindsignificant_text?
-
significantText
public SignificantTextAggregation significantText()
Get thesignificant_textvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesignificant_textkind.
-
isStats
public boolean isStats()
Is this variant instance of kindstats?
-
stats
public StatsAggregation 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 StatsBucketAggregation statsBucket()
Get thestats_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestats_bucketkind.
-
isStringStats
public boolean isStringStats()
Is this variant instance of kindstring_stats?
-
stringStats
public StringStatsAggregation stringStats()
Get thestring_statsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestring_statskind.
-
isSum
public boolean isSum()
Is this variant instance of kindsum?
-
sum
public SumAggregation sum()
Get thesumvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesumkind.
-
isSumBucket
public boolean isSumBucket()
Is this variant instance of kindsum_bucket?
-
sumBucket
public SumBucketAggregation sumBucket()
Get thesum_bucketvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesum_bucketkind.
-
isTerms
public boolean isTerms()
Is this variant instance of kindterms?
-
terms
public TermsAggregation terms()
Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
isTopHits
public boolean isTopHits()
Is this variant instance of kindtop_hits?
-
topHits
public TopHitsAggregation topHits()
Get thetop_hitsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetop_hitskind.
-
isTTest
public boolean isTTest()
Is this variant instance of kindt_test?
-
tTest
public TTestAggregation tTest()
Get thet_testvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thet_testkind.
-
isTopMetrics
public boolean isTopMetrics()
Is this variant instance of kindtop_metrics?
-
topMetrics
public TopMetricsAggregation topMetrics()
Get thetop_metricsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetop_metricskind.
-
isValueCount
public boolean isValueCount()
Is this variant instance of kindvalue_count?
-
valueCount
public ValueCountAggregation valueCount()
Get thevalue_countvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevalue_countkind.
-
isWeightedAvg
public boolean isWeightedAvg()
Is this variant instance of kindweighted_avg?
-
weightedAvg
public WeightedAverageAggregation weightedAvg()
Get theweighted_avgvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theweighted_avgkind.
-
isVariableWidthHistogram
public boolean isVariableWidthHistogram()
Is this variant instance of kindvariable_width_histogram?
-
variableWidthHistogram
public VariableWidthHistogramAggregation variableWidthHistogram()
Get thevariable_width_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevariable_width_histogramkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupAggregationDeserializer
protected static void setupAggregationDeserializer(ObjectDeserializer<Aggregation.Builder> op)
-
-