Class InternalExtendedStats
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
org.elasticsearch.search.aggregations.metrics.InternalStats
org.elasticsearch.search.aggregations.metrics.InternalExtendedStats
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
,Aggregation
,ExtendedStats
,NumericMetricsAggregation
,NumericMetricsAggregation.MultiValue
,Stats
- Direct Known Subclasses:
InternalExtendedStatsBucket
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilder
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.ExtendedStats
ExtendedStats.Bounds
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.metrics.InternalStats
count, max, min, sum
Fields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
format
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionInternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, Map<String,Object> metadata)
Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getSigma()
double
The population standard deviation of the collected values.The population standard deviation of the collected values as a String.double
The upper or lower bounds of the stdDeviationThe upper or lower bounds of stdDev of the collected values as a String.double
The population standard deviation of the collected values.The population standard deviation of the collected values as a String.double
The sampling standard deviation of the collected values.The sampling standard deviation of the collected values as a String.double
The sum of the squares of the collected values.The sum of the squares of the collected values as a String.double
The population variance of the collected values.The population variance of the collected values as a String.double
The population variance of the collected values.The population variance of the collected values as a String.double
The sampling variance of the collected values.The sampling variance of the collected values as a String.Returns the name of the writeable objectint
hashCode()
protected org.elasticsearch.common.xcontent.XContentBuilder
otherStatsToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
reduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
Reduces the given aggregations to a single one and returns it.double
Return the result of 1 value by nameReturn an iterable over all value names this multi value aggregation provides.protected void
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalStats
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, sortValue, valueAsString
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
mustReduceOnSingleInternalAgg, sortValue
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reducePipelines, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.search.aggregations.metrics.Stats
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
InternalExtendedStats
public InternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, Map<String,Object> metadata) -
InternalExtendedStats
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeOtherStatsTo
- Overrides:
writeOtherStatsTo
in classInternalStats
- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Overrides:
getWriteableName
in classInternalStats
-
value
Description copied from interface:NumericMetricsAggregation.MultiValue
Return the result of 1 value by name- Specified by:
value
in interfaceNumericMetricsAggregation.MultiValue
- Overrides:
value
in classInternalStats
- Parameters:
name
- of the value- Returns:
- the value
-
valueNames
Description copied from interface:NumericMetricsAggregation.MultiValue
Return an iterable over all value names this multi value aggregation provides. The iterable might be created on the fly, if you need to call this multiple times, please cache the result in a variable on caller side..- Specified by:
valueNames
in interfaceNumericMetricsAggregation.MultiValue
- Overrides:
valueNames
in classInternalStats
- Returns:
- iterable over all value names
-
getSigma
public double getSigma() -
getSumOfSquares
public double getSumOfSquares()Description copied from interface:ExtendedStats
The sum of the squares of the collected values.- Specified by:
getSumOfSquares
in interfaceExtendedStats
-
getVariance
public double getVariance()Description copied from interface:ExtendedStats
The population variance of the collected values.- Specified by:
getVariance
in interfaceExtendedStats
-
getVariancePopulation
public double getVariancePopulation()Description copied from interface:ExtendedStats
The population variance of the collected values.- Specified by:
getVariancePopulation
in interfaceExtendedStats
-
getVarianceSampling
public double getVarianceSampling()Description copied from interface:ExtendedStats
The sampling variance of the collected values.- Specified by:
getVarianceSampling
in interfaceExtendedStats
-
getStdDeviation
public double getStdDeviation()Description copied from interface:ExtendedStats
The population standard deviation of the collected values.- Specified by:
getStdDeviation
in interfaceExtendedStats
-
getStdDeviationPopulation
public double getStdDeviationPopulation()Description copied from interface:ExtendedStats
The population standard deviation of the collected values.- Specified by:
getStdDeviationPopulation
in interfaceExtendedStats
-
getStdDeviationSampling
public double getStdDeviationSampling()Description copied from interface:ExtendedStats
The sampling standard deviation of the collected values.- Specified by:
getStdDeviationSampling
in interfaceExtendedStats
-
getStdDeviationBound
Description copied from interface:ExtendedStats
The upper or lower bounds of the stdDeviation- Specified by:
getStdDeviationBound
in interfaceExtendedStats
-
getSumOfSquaresAsString
Description copied from interface:ExtendedStats
The sum of the squares of the collected values as a String.- Specified by:
getSumOfSquaresAsString
in interfaceExtendedStats
-
getVarianceAsString
Description copied from interface:ExtendedStats
The population variance of the collected values as a String.- Specified by:
getVarianceAsString
in interfaceExtendedStats
-
getVariancePopulationAsString
Description copied from interface:ExtendedStats
The population variance of the collected values as a String.- Specified by:
getVariancePopulationAsString
in interfaceExtendedStats
-
getVarianceSamplingAsString
Description copied from interface:ExtendedStats
The sampling variance of the collected values as a String.- Specified by:
getVarianceSamplingAsString
in interfaceExtendedStats
-
getStdDeviationAsString
Description copied from interface:ExtendedStats
The population standard deviation of the collected values as a String.- Specified by:
getStdDeviationAsString
in interfaceExtendedStats
-
getStdDeviationPopulationAsString
Description copied from interface:ExtendedStats
The population standard deviation of the collected values as a String.- Specified by:
getStdDeviationPopulationAsString
in interfaceExtendedStats
-
getStdDeviationSamplingAsString
Description copied from interface:ExtendedStats
The sampling standard deviation of the collected values as a String.- Specified by:
getStdDeviationSamplingAsString
in interfaceExtendedStats
-
getStdDeviationBoundAsString
Description copied from interface:ExtendedStats
The upper or lower bounds of stdDev of the collected values as a String.- Specified by:
getStdDeviationBoundAsString
in interfaceExtendedStats
-
reduce
public InternalExtendedStats reduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)Description copied from class:InternalAggregation
Reduces the given aggregations to a single one and returns it. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). For best efficiency, when implementing, try reusing an existing instance (typically the first in the given list) to save on redundant object construction.- Overrides:
reduce
in classInternalStats
- See Also:
InternalAggregation.mustReduceOnSingleInternalAgg()
-
otherStatsToXContent
protected org.elasticsearch.common.xcontent.XContentBuilder otherStatsToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Overrides:
otherStatsToXContent
in classInternalStats
- Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalStats
-
equals
- Overrides:
equals
in classInternalStats
-