Class Aggregation
java.lang.Object
co.elastic.clients.elasticsearch._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
- See Also:
- API specification
-
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
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.BucketCorrelationAggregationbucketCorrelation()Get thebucket_correlationvariant value.BucketKsAggregationbucketCountKsTest()Get thebucket_count_ks_testvariant value.BucketScriptAggregationbucketScript()Get thebucket_scriptvariant value.BucketSelectorAggregationbucketSelector()Get thebucket_selectorvariant value.BucketSortAggregationbucketSort()Get thebucket_sortvariant value.CardinalityAggregationcardinality()Get thecardinalityvariant value.CategorizeTextAggregationcategorizeText()Get thecategorize_textvariant 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?booleanisBucketCorrelation()Is this variant instance of kindbucket_correlation?booleanisBucketCountKsTest()Is this variant instance of kindbucket_count_ks_test?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?booleanisCategorizeText()Is this variant instance of kindcategorize_text?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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Aggregation
-
-
Method Details
-
_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
Sub-aggregations for this aggregation. Only applies to bucket aggregations.API name:
aggregations -
meta
API name:meta -
isAdjacencyMatrix
public boolean isAdjacencyMatrix()Is this variant instance of kindadjacency_matrix? -
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
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
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
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
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
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
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
Get thebucket_sortvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_sortkind.
-
isBucketCountKsTest
public boolean isBucketCountKsTest()Is this variant instance of kindbucket_count_ks_test? -
bucketCountKsTest
Get thebucket_count_ks_testvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_count_ks_testkind.
-
isBucketCorrelation
public boolean isBucketCorrelation()Is this variant instance of kindbucket_correlation? -
bucketCorrelation
Get thebucket_correlationvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebucket_correlationkind.
-
isCardinality
public boolean isCardinality()Is this variant instance of kindcardinality? -
cardinality
Get thecardinalityvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecardinalitykind.
-
isCategorizeText
public boolean isCategorizeText()Is this variant instance of kindcategorize_text? -
categorizeText
Get thecategorize_textvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecategorize_textkind.
-
isChildren
public boolean isChildren()Is this variant instance of kindchildren? -
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Get thevariable_width_histogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevariable_width_histogramkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupAggregationDeserializer
-