Class Aggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.Aggregation
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class Aggregation extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Aggregation.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Aggregation>
_DESERIALIZER
static java.lang.String
ADJACENCY_MATRIX
static java.lang.String
AUTO_DATE_HISTOGRAM
static java.lang.String
AVG
static java.lang.String
AVG_BUCKET
static java.lang.String
BOXPLOT
static java.lang.String
BUCKET_SCRIPT
static java.lang.String
BUCKET_SELECTOR
static java.lang.String
BUCKET_SORT
static java.lang.String
CARDINALITY
static java.lang.String
CHILDREN
static java.lang.String
COMPOSITE
static java.lang.String
CUMULATIVE_CARDINALITY
static java.lang.String
CUMULATIVE_SUM
static java.lang.String
DATE_HISTOGRAM
static java.lang.String
DATE_RANGE
static java.lang.String
DERIVATIVE
static java.lang.String
DIVERSIFIED_SAMPLER
static java.lang.String
EXTENDED_STATS
static java.lang.String
EXTENDED_STATS_BUCKET
static java.lang.String
FILTER
static java.lang.String
FILTERS
static java.lang.String
GEO_BOUNDS
static java.lang.String
GEO_CENTROID
static java.lang.String
GEO_DISTANCE
static java.lang.String
GEO_LINE
static java.lang.String
GEOHASH_GRID
static java.lang.String
GEOTILE_GRID
static java.lang.String
GLOBAL
static java.lang.String
HISTOGRAM
static java.lang.String
INFERENCE
static java.lang.String
IP_RANGE
static java.lang.String
MATRIX_STATS
static java.lang.String
MAX
static java.lang.String
MAX_BUCKET
static java.lang.String
MEDIAN_ABSOLUTE_DEVIATION
static java.lang.String
MIN
static java.lang.String
MIN_BUCKET
static java.lang.String
MISSING
static java.lang.String
MOVING_AVG
static java.lang.String
MOVING_FN
static java.lang.String
MOVING_PERCENTILES
static java.lang.String
MULTI_TERMS
static java.lang.String
NESTED
static java.lang.String
NORMALIZE
static java.lang.String
PARENT
static java.lang.String
PERCENTILE_RANKS
static java.lang.String
PERCENTILES
static java.lang.String
PERCENTILES_BUCKET
static java.lang.String
RANGE
static java.lang.String
RARE_TERMS
static java.lang.String
RATE
static java.lang.String
REVERSE_NESTED
static java.lang.String
SAMPLER
static java.lang.String
SCRIPTED_METRIC
static java.lang.String
SERIAL_DIFF
static java.lang.String
SIGNIFICANT_TERMS
static java.lang.String
SIGNIFICANT_TEXT
static java.lang.String
STATS
static java.lang.String
STATS_BUCKET
static java.lang.String
STRING_STATS
static java.lang.String
SUM
static java.lang.String
SUM_BUCKET
static java.lang.String
T_TEST
static java.lang.String
TERMS
static java.lang.String
TOP_HITS
static java.lang.String
TOP_METRICS
static java.lang.String
VALUE_COUNT
static java.lang.String
VARIABLE_WIDTH_HISTOGRAM
static java.lang.String
WEIGHTED_AVG
-
Constructor Summary
Constructors Constructor Description Aggregation(AggregationVariant value)
Aggregation(ObjectBuilder<T> builder)
Aggregation(java.util.function.Function<Aggregation.Builder,Aggregation.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.AdjacencyMatrixAggregation
adjacencyMatrix()
Get theadjacency_matrix
variant value.java.util.Map<java.lang.String,Aggregation>
aggs()
API name:aggs
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.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.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.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.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.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(DelegatingDeserializer<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
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
ADJACENCY_MATRIX
public static final java.lang.String ADJACENCY_MATRIX- See Also:
- Constant Field Values
-
AUTO_DATE_HISTOGRAM
public static final java.lang.String AUTO_DATE_HISTOGRAM- See Also:
- Constant Field Values
-
AVG
public static final java.lang.String AVG- See Also:
- Constant Field Values
-
AVG_BUCKET
public static final java.lang.String AVG_BUCKET- See Also:
- Constant Field Values
-
BOXPLOT
public static final java.lang.String BOXPLOT- See Also:
- Constant Field Values
-
BUCKET_SCRIPT
public static final java.lang.String BUCKET_SCRIPT- See Also:
- Constant Field Values
-
BUCKET_SELECTOR
public static final java.lang.String BUCKET_SELECTOR- See Also:
- Constant Field Values
-
BUCKET_SORT
public static final java.lang.String BUCKET_SORT- See Also:
- Constant Field Values
-
CARDINALITY
public static final java.lang.String CARDINALITY- See Also:
- Constant Field Values
-
CHILDREN
public static final java.lang.String CHILDREN- See Also:
- Constant Field Values
-
COMPOSITE
public static final java.lang.String COMPOSITE- See Also:
- Constant Field Values
-
CUMULATIVE_CARDINALITY
public static final java.lang.String CUMULATIVE_CARDINALITY- See Also:
- Constant Field Values
-
CUMULATIVE_SUM
public static final java.lang.String CUMULATIVE_SUM- See Also:
- Constant Field Values
-
DATE_HISTOGRAM
public static final java.lang.String DATE_HISTOGRAM- See Also:
- Constant Field Values
-
DATE_RANGE
public static final java.lang.String DATE_RANGE- See Also:
- Constant Field Values
-
DERIVATIVE
public static final java.lang.String DERIVATIVE- See Also:
- Constant Field Values
-
DIVERSIFIED_SAMPLER
public static final java.lang.String DIVERSIFIED_SAMPLER- See Also:
- Constant Field Values
-
EXTENDED_STATS
public static final java.lang.String EXTENDED_STATS- See Also:
- Constant Field Values
-
EXTENDED_STATS_BUCKET
public static final java.lang.String EXTENDED_STATS_BUCKET- See Also:
- Constant Field Values
-
FILTER
public static final java.lang.String FILTER- See Also:
- Constant Field Values
-
FILTERS
public static final java.lang.String FILTERS- See Also:
- Constant Field Values
-
GEO_BOUNDS
public static final java.lang.String GEO_BOUNDS- See Also:
- Constant Field Values
-
GEO_CENTROID
public static final java.lang.String GEO_CENTROID- See Also:
- Constant Field Values
-
GEO_DISTANCE
public static final java.lang.String GEO_DISTANCE- See Also:
- Constant Field Values
-
GEOHASH_GRID
public static final java.lang.String GEOHASH_GRID- See Also:
- Constant Field Values
-
GEO_LINE
public static final java.lang.String GEO_LINE- See Also:
- Constant Field Values
-
GEOTILE_GRID
public static final java.lang.String GEOTILE_GRID- See Also:
- Constant Field Values
-
GLOBAL
public static final java.lang.String GLOBAL- See Also:
- Constant Field Values
-
HISTOGRAM
public static final java.lang.String HISTOGRAM- See Also:
- Constant Field Values
-
IP_RANGE
public static final java.lang.String IP_RANGE- See Also:
- Constant Field Values
-
INFERENCE
public static final java.lang.String INFERENCE- See Also:
- Constant Field Values
-
MATRIX_STATS
public static final java.lang.String MATRIX_STATS- See Also:
- Constant Field Values
-
MAX
public static final java.lang.String MAX- See Also:
- Constant Field Values
-
MAX_BUCKET
public static final java.lang.String MAX_BUCKET- See Also:
- Constant Field Values
-
MEDIAN_ABSOLUTE_DEVIATION
public static final java.lang.String MEDIAN_ABSOLUTE_DEVIATION- See Also:
- Constant Field Values
-
MIN
public static final java.lang.String MIN- See Also:
- Constant Field Values
-
MIN_BUCKET
public static final java.lang.String MIN_BUCKET- See Also:
- Constant Field Values
-
MISSING
public static final java.lang.String MISSING- See Also:
- Constant Field Values
-
MOVING_AVG
public static final java.lang.String MOVING_AVG- See Also:
- Constant Field Values
-
MOVING_PERCENTILES
public static final java.lang.String MOVING_PERCENTILES- See Also:
- Constant Field Values
-
MOVING_FN
public static final java.lang.String MOVING_FN- See Also:
- Constant Field Values
-
MULTI_TERMS
public static final java.lang.String MULTI_TERMS- See Also:
- Constant Field Values
-
NESTED
public static final java.lang.String NESTED- See Also:
- Constant Field Values
-
NORMALIZE
public static final java.lang.String NORMALIZE- See Also:
- Constant Field Values
-
PARENT
public static final java.lang.String PARENT- See Also:
- Constant Field Values
-
PERCENTILE_RANKS
public static final java.lang.String PERCENTILE_RANKS- See Also:
- Constant Field Values
-
PERCENTILES
public static final java.lang.String PERCENTILES- See Also:
- Constant Field Values
-
PERCENTILES_BUCKET
public static final java.lang.String PERCENTILES_BUCKET- See Also:
- Constant Field Values
-
RANGE
public static final java.lang.String RANGE- See Also:
- Constant Field Values
-
RARE_TERMS
public static final java.lang.String RARE_TERMS- See Also:
- Constant Field Values
-
RATE
public static final java.lang.String RATE- See Also:
- Constant Field Values
-
REVERSE_NESTED
public static final java.lang.String REVERSE_NESTED- See Also:
- Constant Field Values
-
SAMPLER
public static final java.lang.String SAMPLER- See Also:
- Constant Field Values
-
SCRIPTED_METRIC
public static final java.lang.String SCRIPTED_METRIC- See Also:
- Constant Field Values
-
SERIAL_DIFF
public static final java.lang.String SERIAL_DIFF- See Also:
- Constant Field Values
-
SIGNIFICANT_TERMS
public static final java.lang.String SIGNIFICANT_TERMS- See Also:
- Constant Field Values
-
SIGNIFICANT_TEXT
public static final java.lang.String SIGNIFICANT_TEXT- See Also:
- Constant Field Values
-
STATS
public static final java.lang.String STATS- See Also:
- Constant Field Values
-
STATS_BUCKET
public static final java.lang.String STATS_BUCKET- See Also:
- Constant Field Values
-
STRING_STATS
public static final java.lang.String STRING_STATS- See Also:
- Constant Field Values
-
SUM
public static final java.lang.String SUM- See Also:
- Constant Field Values
-
SUM_BUCKET
public static final java.lang.String SUM_BUCKET- See Also:
- Constant Field Values
-
TERMS
public static final java.lang.String TERMS- See Also:
- Constant Field Values
-
TOP_HITS
public static final java.lang.String TOP_HITS- See Also:
- Constant Field Values
-
T_TEST
public static final java.lang.String T_TEST- See Also:
- Constant Field Values
-
TOP_METRICS
public static final java.lang.String TOP_METRICS- See Also:
- Constant Field Values
-
VALUE_COUNT
public static final java.lang.String VALUE_COUNT- See Also:
- Constant Field Values
-
WEIGHTED_AVG
public static final java.lang.String WEIGHTED_AVG- See Also:
- Constant Field Values
-
VARIABLE_WIDTH_HISTOGRAM
public static final java.lang.String VARIABLE_WIDTH_HISTOGRAM- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Aggregation
-
Aggregation
-
Aggregation
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
aggs
API name:aggs
-
meta
API name:meta
-
adjacencyMatrix
Get theadjacency_matrix
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theadjacency_matrix
kind.
-
autoDateHistogram
Get theauto_date_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theauto_date_histogram
kind.
-
avg
Get theavg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theavg
kind.
-
avgBucket
Get theavg_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theavg_bucket
kind.
-
boxplot
Get theboxplot
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theboxplot
kind.
-
bucketScript
Get thebucket_script
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_script
kind.
-
bucketSelector
Get thebucket_selector
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_selector
kind.
-
bucketSort
Get thebucket_sort
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebucket_sort
kind.
-
cardinality
Get thecardinality
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecardinality
kind.
-
children
Get thechildren
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thechildren
kind.
-
composite
Get thecomposite
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecomposite
kind.
-
cumulativeCardinality
Get thecumulative_cardinality
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecumulative_cardinality
kind.
-
cumulativeSum
Get thecumulative_sum
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecumulative_sum
kind.
-
dateHistogram
Get thedate_histogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_histogram
kind.
-
dateRange
Get thedate_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_range
kind.
-
derivative
Get thederivative
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thederivative
kind.
-
diversifiedSampler
Get thediversified_sampler
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thediversified_sampler
kind.
-
extendedStats
Get theextended_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theextended_stats
kind.
-
extendedStatsBucket
Get theextended_stats_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theextended_stats_bucket
kind.
-
filter
Get thefilter
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefilter
kind.
-
filters
Get thefilters
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefilters
kind.
-
geoBounds
Get thegeo_bounds
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_bounds
kind.
-
geoCentroid
Get thegeo_centroid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_centroid
kind.
-
geoDistance
Get thegeo_distance
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_distance
kind.
-
geohashGrid
Get thegeohash_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeohash_grid
kind.
-
geoLine
Get thegeo_line
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_line
kind.
-
geotileGrid
Get thegeotile_grid
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeotile_grid
kind.
-
global
Get theglobal
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theglobal
kind.
-
histogram
Get thehistogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehistogram
kind.
-
ipRange
Get theip_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theip_range
kind.
-
inference
Get theinference
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theinference
kind.
-
matrixStats
Get thematrix_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thematrix_stats
kind.
-
max
Get themax
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themax
kind.
-
maxBucket
Get themax_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themax_bucket
kind.
-
medianAbsoluteDeviation
Get themedian_absolute_deviation
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themedian_absolute_deviation
kind.
-
min
Get themin
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themin
kind.
-
minBucket
Get themin_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themin_bucket
kind.
-
missing
Get themissing
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themissing
kind.
-
movingAvg
Get themoving_avg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_avg
kind.
-
movingPercentiles
Get themoving_percentiles
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_percentiles
kind.
-
movingFn
Get themoving_fn
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themoving_fn
kind.
-
multiTerms
Get themulti_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themulti_terms
kind.
-
nested
Get thenested
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenested
kind.
-
normalize
Get thenormalize
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenormalize
kind.
-
parent
Get theparent
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theparent
kind.
-
percentileRanks
Get thepercentile_ranks
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentile_ranks
kind.
-
percentiles
Get thepercentiles
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentiles
kind.
-
percentilesBucket
Get thepercentiles_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercentiles_bucket
kind.
-
range
Get therange
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therange
kind.
-
rareTerms
Get therare_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therare_terms
kind.
-
rate
Get therate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therate
kind.
-
reverseNested
Get thereverse_nested
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thereverse_nested
kind.
-
sampler
Get thesampler
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesampler
kind.
-
scriptedMetric
Get thescripted_metric
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thescripted_metric
kind.
-
serialDiff
Get theserial_diff
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theserial_diff
kind.
-
significantTerms
Get thesignificant_terms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesignificant_terms
kind.
-
significantText
Get thesignificant_text
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesignificant_text
kind.
-
stats
Get thestats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestats
kind.
-
statsBucket
Get thestats_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestats_bucket
kind.
-
stringStats
Get thestring_stats
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thestring_stats
kind.
-
sum
Get thesum
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesum
kind.
-
sumBucket
Get thesum_bucket
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesum_bucket
kind.
-
terms
Get theterms
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theterms
kind.
-
topHits
Get thetop_hits
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetop_hits
kind.
-
tTest
Get thet_test
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thet_test
kind.
-
topMetrics
Get thetop_metrics
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetop_metrics
kind.
-
valueCount
Get thevalue_count
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thevalue_count
kind.
-
weightedAvg
Get theweighted_avg
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theweighted_avg
kind.
-
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
-