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 class
Aggregation.Builder
static class
Aggregation.Kind
Aggregation
variant 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.AdjacencyMatrixAggregation
adjacencyMatrix()
Get theadjacency_matrix
variant value.java.util.Map<java.lang.String,Aggregation>
aggregations()
Sub-aggregations for this aggregation.AutoDateHistogramAggregation
autoDateHistogram()
Get theauto_date_histogram
variant value.AverageAggregation
avg()
Get theavg
variant value.AverageBucketAggregation
avgBucket()
Get theavg_bucket
variant value.BoxplotAggregation
boxplot()
Get theboxplot
variant value.BucketCorrelationAggregation
bucketCorrelation()
Get thebucket_correlation
variant value.BucketKsAggregation
bucketCountKsTest()
Get thebucket_count_ks_test
variant value.BucketScriptAggregation
bucketScript()
Get thebucket_script
variant value.BucketSelectorAggregation
bucketSelector()
Get thebucket_selector
variant value.BucketSortAggregation
bucketSort()
Get thebucket_sort
variant value.CardinalityAggregation
cardinality()
Get thecardinality
variant value.CategorizeTextAggregation
categorizeText()
Get thecategorize_text
variant value.ChildrenAggregation
children()
Get thechildren
variant value.CompositeAggregation
composite()
Get thecomposite
variant value.CumulativeCardinalityAggregation
cumulativeCardinality()
Get thecumulative_cardinality
variant value.CumulativeSumAggregation
cumulativeSum()
Get thecumulative_sum
variant value.DateHistogramAggregation
dateHistogram()
Get thedate_histogram
variant value.DateRangeAggregation
dateRange()
Get thedate_range
variant value.DerivativeAggregation
derivative()
Get thederivative
variant value.DiversifiedSamplerAggregation
diversifiedSampler()
Get thediversified_sampler
variant value.ExtendedStatsAggregation
extendedStats()
Get theextended_stats
variant value.ExtendedStatsBucketAggregation
extendedStatsBucket()
Get theextended_stats_bucket
variant value.Query
filter()
Get thefilter
variant value.FiltersAggregation
filters()
Get thefilters
variant value.GeoBoundsAggregation
geoBounds()
Get thegeo_bounds
variant value.GeoCentroidAggregation
geoCentroid()
Get thegeo_centroid
variant value.GeoDistanceAggregation
geoDistance()
Get thegeo_distance
variant value.GeoHashGridAggregation
geohashGrid()
Get thegeohash_grid
variant value.GeohexGridAggregation
geohexGrid()
Get thegeohex_grid
variant value.GeoLineAggregation
geoLine()
Get thegeo_line
variant value.GeoTileGridAggregation
geotileGrid()
Get thegeotile_grid
variant value.GlobalAggregation
global()
Get theglobal
variant value.HistogramAggregation
histogram()
Get thehistogram
variant value.InferenceAggregation
inference()
Get theinference
variant value.IpRangeAggregation
ipRange()
Get theip_range
variant value.boolean
isAdjacencyMatrix()
Is this variant instance of kindadjacency_matrix
?boolean
isAutoDateHistogram()
Is this variant instance of kindauto_date_histogram
?boolean
isAvg()
Is this variant instance of kindavg
?boolean
isAvgBucket()
Is this variant instance of kindavg_bucket
?boolean
isBoxplot()
Is this variant instance of kindboxplot
?boolean
isBucketCorrelation()
Is this variant instance of kindbucket_correlation
?boolean
isBucketCountKsTest()
Is this variant instance of kindbucket_count_ks_test
?boolean
isBucketScript()
Is this variant instance of kindbucket_script
?boolean
isBucketSelector()
Is this variant instance of kindbucket_selector
?boolean
isBucketSort()
Is this variant instance of kindbucket_sort
?boolean
isCardinality()
Is this variant instance of kindcardinality
?boolean
isCategorizeText()
Is this variant instance of kindcategorize_text
?boolean
isChildren()
Is this variant instance of kindchildren
?boolean
isComposite()
Is this variant instance of kindcomposite
?boolean
isCumulativeCardinality()
Is this variant instance of kindcumulative_cardinality
?boolean
isCumulativeSum()
Is this variant instance of kindcumulative_sum
?boolean
isDateHistogram()
Is this variant instance of kinddate_histogram
?boolean
isDateRange()
Is this variant instance of kinddate_range
?boolean
isDerivative()
Is this variant instance of kindderivative
?boolean
isDiversifiedSampler()
Is this variant instance of kinddiversified_sampler
?boolean
isExtendedStats()
Is this variant instance of kindextended_stats
?boolean
isExtendedStatsBucket()
Is this variant instance of kindextended_stats_bucket
?boolean
isFilter()
Is this variant instance of kindfilter
?boolean
isFilters()
Is this variant instance of kindfilters
?boolean
isGeoBounds()
Is this variant instance of kindgeo_bounds
?boolean
isGeoCentroid()
Is this variant instance of kindgeo_centroid
?boolean
isGeoDistance()
Is this variant instance of kindgeo_distance
?boolean
isGeohashGrid()
Is this variant instance of kindgeohash_grid
?boolean
isGeohexGrid()
Is this variant instance of kindgeohex_grid
?boolean
isGeoLine()
Is this variant instance of kindgeo_line
?boolean
isGeotileGrid()
Is this variant instance of kindgeotile_grid
?boolean
isGlobal()
Is this variant instance of kindglobal
?boolean
isHistogram()
Is this variant instance of kindhistogram
?boolean
isInference()
Is this variant instance of kindinference
?boolean
isIpRange()
Is this variant instance of kindip_range
?boolean
isMatrixStats()
Is this variant instance of kindmatrix_stats
?boolean
isMax()
Is this variant instance of kindmax
?boolean
isMaxBucket()
Is this variant instance of kindmax_bucket
?boolean
isMedianAbsoluteDeviation()
Is this variant instance of kindmedian_absolute_deviation
?boolean
isMin()
Is this variant instance of kindmin
?boolean
isMinBucket()
Is this variant instance of kindmin_bucket
?boolean
isMissing()
Is this variant instance of kindmissing
?boolean
isMovingAvg()
Is this variant instance of kindmoving_avg
?boolean
isMovingFn()
Is this variant instance of kindmoving_fn
?boolean
isMovingPercentiles()
Is this variant instance of kindmoving_percentiles
?boolean
isMultiTerms()
Is this variant instance of kindmulti_terms
?boolean
isNested()
Is this variant instance of kindnested
?boolean
isNormalize()
Is this variant instance of kindnormalize
?boolean
isParent()
Is this variant instance of kindparent
?boolean
isPercentileRanks()
Is this variant instance of kindpercentile_ranks
?boolean
isPercentiles()
Is this variant instance of kindpercentiles
?boolean
isPercentilesBucket()
Is this variant instance of kindpercentiles_bucket
?boolean
isRange()
Is this variant instance of kindrange
?boolean
isRareTerms()
Is this variant instance of kindrare_terms
?boolean
isRate()
Is this variant instance of kindrate
?boolean
isReverseNested()
Is this variant instance of kindreverse_nested
?boolean
isSampler()
Is this variant instance of kindsampler
?boolean
isScriptedMetric()
Is this variant instance of kindscripted_metric
?boolean
isSerialDiff()
Is this variant instance of kindserial_diff
?boolean
isSignificantTerms()
Is this variant instance of kindsignificant_terms
?boolean
isSignificantText()
Is this variant instance of kindsignificant_text
?boolean
isStats()
Is this variant instance of kindstats
?boolean
isStatsBucket()
Is this variant instance of kindstats_bucket
?boolean
isStringStats()
Is this variant instance of kindstring_stats
?boolean
isSum()
Is this variant instance of kindsum
?boolean
isSumBucket()
Is this variant instance of kindsum_bucket
?boolean
isTerms()
Is this variant instance of kindterms
?boolean
isTopHits()
Is this variant instance of kindtop_hits
?boolean
isTopMetrics()
Is this variant instance of kindtop_metrics
?boolean
isTTest()
Is this variant instance of kindt_test
?boolean
isValueCount()
Is this variant instance of kindvalue_count
?boolean
isVariableWidthHistogram()
Is this variant instance of kindvariable_width_histogram
?boolean
isWeightedAvg()
Is this variant instance of kindweighted_avg
?MatrixStatsAggregation
matrixStats()
Get thematrix_stats
variant value.MaxAggregation
max()
Get themax
variant value.MaxBucketAggregation
maxBucket()
Get themax_bucket
variant value.MedianAbsoluteDeviationAggregation
medianAbsoluteDeviation()
Get themedian_absolute_deviation
variant value.java.util.Map<java.lang.String,JsonData>
meta()
API name:meta
MinAggregation
min()
Get themin
variant value.MinBucketAggregation
minBucket()
Get themin_bucket
variant value.MissingAggregation
missing()
Get themissing
variant value.MovingAverageAggregation
movingAvg()
Get themoving_avg
variant value.MovingFunctionAggregation
movingFn()
Get themoving_fn
variant value.MovingPercentilesAggregation
movingPercentiles()
Get themoving_percentiles
variant value.MultiTermsAggregation
multiTerms()
Get themulti_terms
variant value.NestedAggregation
nested()
Get thenested
variant value.NormalizeAggregation
normalize()
Get thenormalize
variant value.static Aggregation
of(java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)
ParentAggregation
parent()
Get theparent
variant value.PercentileRanksAggregation
percentileRanks()
Get thepercentile_ranks
variant value.PercentilesAggregation
percentiles()
Get thepercentiles
variant value.PercentilesBucketAggregation
percentilesBucket()
Get thepercentiles_bucket
variant value.RangeAggregation
range()
Get therange
variant value.RareTermsAggregation
rareTerms()
Get therare_terms
variant value.RateAggregation
rate()
Get therate
variant value.ReverseNestedAggregation
reverseNested()
Get thereverse_nested
variant value.SamplerAggregation
sampler()
Get thesampler
variant value.ScriptedMetricAggregation
scriptedMetric()
Get thescripted_metric
variant value.SerialDifferencingAggregation
serialDiff()
Get theserial_diff
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupAggregationDeserializer(ObjectDeserializer<Aggregation.Builder> op)
SignificantTermsAggregation
significantTerms()
Get thesignificant_terms
variant value.SignificantTextAggregation
significantText()
Get thesignificant_text
variant value.StatsAggregation
stats()
Get thestats
variant value.StatsBucketAggregation
statsBucket()
Get thestats_bucket
variant value.StringStatsAggregation
stringStats()
Get thestring_stats
variant value.SumAggregation
sum()
Get thesum
variant value.SumBucketAggregation
sumBucket()
Get thesum_bucket
variant value.TermsAggregation
terms()
Get theterms
variant value.TopHitsAggregation
topHits()
Get thetop_hits
variant value.TopMetricsAggregation
topMetrics()
Get thetop_metrics
variant value.TTestAggregation
tTest()
Get thet_test
variant value.ValueCountAggregation
valueCount()
Get thevalue_count
variant value.VariableWidthHistogramAggregation
variableWidthHistogram()
Get thevariable_width_histogram
variant value.WeightedAverageAggregation
weightedAvg()
Get theweighted_avg
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Aggregation.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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_matrix
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theadjacency_matrix
kind.
-
isAutoDateHistogram
public boolean isAutoDateHistogram()Is this variant instance of kindauto_date_histogram
? -
autoDateHistogram
Get theauto_date_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theauto_date_histogram
kind.
-
isAvg
public boolean isAvg()Is this variant instance of kindavg
? -
avg
Get theavg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theavg
kind.
-
isAvgBucket
public boolean isAvgBucket()Is this variant instance of kindavg_bucket
? -
avgBucket
Get theavg_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theavg_bucket
kind.
-
isBoxplot
public boolean isBoxplot()Is this variant instance of kindboxplot
? -
boxplot
Get theboxplot
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theboxplot
kind.
-
isBucketScript
public boolean isBucketScript()Is this variant instance of kindbucket_script
? -
bucketScript
Get thebucket_script
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_script
kind.
-
isBucketSelector
public boolean isBucketSelector()Is this variant instance of kindbucket_selector
? -
bucketSelector
Get thebucket_selector
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_selector
kind.
-
isBucketSort
public boolean isBucketSort()Is this variant instance of kindbucket_sort
? -
bucketSort
Get thebucket_sort
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_sort
kind.
-
isBucketCountKsTest
public boolean isBucketCountKsTest()Is this variant instance of kindbucket_count_ks_test
? -
bucketCountKsTest
Get thebucket_count_ks_test
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_count_ks_test
kind.
-
isBucketCorrelation
public boolean isBucketCorrelation()Is this variant instance of kindbucket_correlation
? -
bucketCorrelation
Get thebucket_correlation
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_correlation
kind.
-
isCardinality
public boolean isCardinality()Is this variant instance of kindcardinality
? -
cardinality
Get thecardinality
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecardinality
kind.
-
isCategorizeText
public boolean isCategorizeText()Is this variant instance of kindcategorize_text
? -
categorizeText
Get thecategorize_text
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecategorize_text
kind.
-
isChildren
public boolean isChildren()Is this variant instance of kindchildren
? -
children
Get thechildren
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thechildren
kind.
-
isComposite
public boolean isComposite()Is this variant instance of kindcomposite
? -
composite
Get thecomposite
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecomposite
kind.
-
isCumulativeCardinality
public boolean isCumulativeCardinality()Is this variant instance of kindcumulative_cardinality
? -
cumulativeCardinality
Get thecumulative_cardinality
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecumulative_cardinality
kind.
-
isCumulativeSum
public boolean isCumulativeSum()Is this variant instance of kindcumulative_sum
? -
cumulativeSum
Get thecumulative_sum
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecumulative_sum
kind.
-
isDateHistogram
public boolean isDateHistogram()Is this variant instance of kinddate_histogram
? -
dateHistogram
Get thedate_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_histogram
kind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range
? -
dateRange
Get thedate_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_range
kind.
-
isDerivative
public boolean isDerivative()Is this variant instance of kindderivative
? -
derivative
Get thederivative
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thederivative
kind.
-
isDiversifiedSampler
public boolean isDiversifiedSampler()Is this variant instance of kinddiversified_sampler
? -
diversifiedSampler
Get thediversified_sampler
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thediversified_sampler
kind.
-
isExtendedStats
public boolean isExtendedStats()Is this variant instance of kindextended_stats
? -
extendedStats
Get theextended_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theextended_stats
kind.
-
isExtendedStatsBucket
public boolean isExtendedStatsBucket()Is this variant instance of kindextended_stats_bucket
? -
extendedStatsBucket
Get theextended_stats_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theextended_stats_bucket
kind.
-
isFilter
public boolean isFilter()Is this variant instance of kindfilter
? -
filter
Get thefilter
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefilter
kind.
-
isFilters
public boolean isFilters()Is this variant instance of kindfilters
? -
filters
Get thefilters
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefilters
kind.
-
isGeoBounds
public boolean isGeoBounds()Is this variant instance of kindgeo_bounds
? -
geoBounds
Get thegeo_bounds
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_bounds
kind.
-
isGeoCentroid
public boolean isGeoCentroid()Is this variant instance of kindgeo_centroid
? -
geoCentroid
Get thegeo_centroid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_centroid
kind.
-
isGeoDistance
public boolean isGeoDistance()Is this variant instance of kindgeo_distance
? -
geoDistance
Get thegeo_distance
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_distance
kind.
-
isGeohashGrid
public boolean isGeohashGrid()Is this variant instance of kindgeohash_grid
? -
geohashGrid
Get thegeohash_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeohash_grid
kind.
-
isGeoLine
public boolean isGeoLine()Is this variant instance of kindgeo_line
? -
geoLine
Get thegeo_line
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_line
kind.
-
isGeotileGrid
public boolean isGeotileGrid()Is this variant instance of kindgeotile_grid
? -
geotileGrid
Get thegeotile_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeotile_grid
kind.
-
isGeohexGrid
public boolean isGeohexGrid()Is this variant instance of kindgeohex_grid
? -
geohexGrid
Get thegeohex_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeohex_grid
kind.
-
isGlobal
public boolean isGlobal()Is this variant instance of kindglobal
? -
global
Get theglobal
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theglobal
kind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram
? -
histogram
Get thehistogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehistogram
kind.
-
isIpRange
public boolean isIpRange()Is this variant instance of kindip_range
? -
ipRange
Get theip_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theip_range
kind.
-
isInference
public boolean isInference()Is this variant instance of kindinference
? -
inference
Get theinference
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theinference
kind.
-
isMatrixStats
public boolean isMatrixStats()Is this variant instance of kindmatrix_stats
? -
matrixStats
Get thematrix_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thematrix_stats
kind.
-
isMax
public boolean isMax()Is this variant instance of kindmax
? -
max
Get themax
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themax
kind.
-
isMaxBucket
public boolean isMaxBucket()Is this variant instance of kindmax_bucket
? -
maxBucket
Get themax_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themax_bucket
kind.
-
isMedianAbsoluteDeviation
public boolean isMedianAbsoluteDeviation()Is this variant instance of kindmedian_absolute_deviation
? -
medianAbsoluteDeviation
Get themedian_absolute_deviation
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themedian_absolute_deviation
kind.
-
isMin
public boolean isMin()Is this variant instance of kindmin
? -
min
Get themin
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themin
kind.
-
isMinBucket
public boolean isMinBucket()Is this variant instance of kindmin_bucket
? -
minBucket
Get themin_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themin_bucket
kind.
-
isMissing
public boolean isMissing()Is this variant instance of kindmissing
? -
missing
Get themissing
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themissing
kind.
-
isMovingAvg
public boolean isMovingAvg()Is this variant instance of kindmoving_avg
? -
movingAvg
Get themoving_avg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_avg
kind.
-
isMovingPercentiles
public boolean isMovingPercentiles()Is this variant instance of kindmoving_percentiles
? -
movingPercentiles
Get themoving_percentiles
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_percentiles
kind.
-
isMovingFn
public boolean isMovingFn()Is this variant instance of kindmoving_fn
? -
movingFn
Get themoving_fn
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_fn
kind.
-
isMultiTerms
public boolean isMultiTerms()Is this variant instance of kindmulti_terms
? -
multiTerms
Get themulti_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themulti_terms
kind.
-
isNested
public boolean isNested()Is this variant instance of kindnested
? -
nested
Get thenested
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenested
kind.
-
isNormalize
public boolean isNormalize()Is this variant instance of kindnormalize
? -
normalize
Get thenormalize
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenormalize
kind.
-
isParent
public boolean isParent()Is this variant instance of kindparent
? -
parent
Get theparent
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theparent
kind.
-
isPercentileRanks
public boolean isPercentileRanks()Is this variant instance of kindpercentile_ranks
? -
percentileRanks
Get thepercentile_ranks
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentile_ranks
kind.
-
isPercentiles
public boolean isPercentiles()Is this variant instance of kindpercentiles
? -
percentiles
Get thepercentiles
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentiles
kind.
-
isPercentilesBucket
public boolean isPercentilesBucket()Is this variant instance of kindpercentiles_bucket
? -
percentilesBucket
Get thepercentiles_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentiles_bucket
kind.
-
isRange
public boolean isRange()Is this variant instance of kindrange
? -
range
Get therange
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therange
kind.
-
isRareTerms
public boolean isRareTerms()Is this variant instance of kindrare_terms
? -
rareTerms
Get therare_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therare_terms
kind.
-
isRate
public boolean isRate()Is this variant instance of kindrate
? -
rate
Get therate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therate
kind.
-
isReverseNested
public boolean isReverseNested()Is this variant instance of kindreverse_nested
? -
reverseNested
Get thereverse_nested
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thereverse_nested
kind.
-
isSampler
public boolean isSampler()Is this variant instance of kindsampler
? -
sampler
Get thesampler
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesampler
kind.
-
isScriptedMetric
public boolean isScriptedMetric()Is this variant instance of kindscripted_metric
? -
scriptedMetric
Get thescripted_metric
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thescripted_metric
kind.
-
isSerialDiff
public boolean isSerialDiff()Is this variant instance of kindserial_diff
? -
serialDiff
Get theserial_diff
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theserial_diff
kind.
-
isSignificantTerms
public boolean isSignificantTerms()Is this variant instance of kindsignificant_terms
? -
significantTerms
Get thesignificant_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesignificant_terms
kind.
-
isSignificantText
public boolean isSignificantText()Is this variant instance of kindsignificant_text
? -
significantText
Get thesignificant_text
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesignificant_text
kind.
-
isStats
public boolean isStats()Is this variant instance of kindstats
? -
stats
Get thestats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestats
kind.
-
isStatsBucket
public boolean isStatsBucket()Is this variant instance of kindstats_bucket
? -
statsBucket
Get thestats_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestats_bucket
kind.
-
isStringStats
public boolean isStringStats()Is this variant instance of kindstring_stats
? -
stringStats
Get thestring_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestring_stats
kind.
-
isSum
public boolean isSum()Is this variant instance of kindsum
? -
sum
Get thesum
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesum
kind.
-
isSumBucket
public boolean isSumBucket()Is this variant instance of kindsum_bucket
? -
sumBucket
Get thesum_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesum_bucket
kind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms
? -
terms
Get theterms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theterms
kind.
-
isTopHits
public boolean isTopHits()Is this variant instance of kindtop_hits
? -
topHits
Get thetop_hits
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetop_hits
kind.
-
isTTest
public boolean isTTest()Is this variant instance of kindt_test
? -
tTest
Get thet_test
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thet_test
kind.
-
isTopMetrics
public boolean isTopMetrics()Is this variant instance of kindtop_metrics
? -
topMetrics
Get thetop_metrics
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetop_metrics
kind.
-
isValueCount
public boolean isValueCount()Is this variant instance of kindvalue_count
? -
valueCount
Get thevalue_count
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thevalue_count
kind.
-
isWeightedAvg
public boolean isWeightedAvg()Is this variant instance of kindweighted_avg
? -
weightedAvg
Get theweighted_avg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theweighted_avg
kind.
-
isVariableWidthHistogram
public boolean isVariableWidthHistogram()Is this variant instance of kindvariable_width_histogram
? -
variableWidthHistogram
Get thevariable_width_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thevariable_width_histogram
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupAggregationDeserializer
-