Class ParsedExtendedStats
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.metrics.ParsedStats
org.elasticsearch.search.aggregations.metrics.ParsedExtendedStats
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,Aggregation,ExtendedStats,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,Stats
- Direct Known Subclasses:
ParsedExtendedStatsBucket
public class ParsedExtendedStats extends ParsedStats implements ExtendedStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.ExtendedStats
ExtendedStats.BoundsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue -
Field Summary
Fields Modifier and Type Field Description protected doubleavgprotected doublestdDeviationprotected doublestdDeviationBoundLowerprotected doublestdDeviationBoundLowerPopulationprotected doublestdDeviationBoundLowerSamplingprotected doublestdDeviationBoundUpperprotected doublestdDeviationBoundUpperPopulationprotected doublestdDeviationBoundUpperSamplingprotected doublestdDeviationPopulationprotected doublestdDeviationSamplingprotected doublesumprotected doublesumOfSquaresprotected doublevarianceprotected doublevariancePopulationprotected doublevarianceSamplingFields inherited from class org.elasticsearch.search.aggregations.metrics.ParsedStats
count, max, min, valueAsStringFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Constructor Summary
Constructors Constructor Description ParsedExtendedStats() -
Method Summary
Modifier and Type Method Description protected static voiddeclareExtendedStatsFields(org.elasticsearch.common.xcontent.ObjectParser<? extends ParsedExtendedStats,java.lang.Void> objectParser)static ParsedExtendedStatsfromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name)doublegetStdDeviation()The population standard deviation of the collected values.java.lang.StringgetStdDeviationAsString()The population standard deviation of the collected values as a String.doublegetStdDeviationBound(ExtendedStats.Bounds bound)The upper or lower bounds of the stdDeviationjava.lang.StringgetStdDeviationBoundAsString(ExtendedStats.Bounds bound)The upper or lower bounds of stdDev of the collected values as a String.doublegetStdDeviationPopulation()The population standard deviation of the collected values.java.lang.StringgetStdDeviationPopulationAsString()The population standard deviation of the collected values as a String.doublegetStdDeviationSampling()The sampling standard deviation of the collected values.java.lang.StringgetStdDeviationSamplingAsString()The sampling standard deviation of the collected values as a String.doublegetSumOfSquares()The sum of the squares of the collected values.java.lang.StringgetSumOfSquaresAsString()The sum of the squares of the collected values as a String.java.lang.StringgetType()doublegetVariance()The population variance of the collected values.java.lang.StringgetVarianceAsString()The population variance of the collected values as a String.doublegetVariancePopulation()The population variance of the collected values.java.lang.StringgetVariancePopulationAsString()The population variance of the collected values as a String.doublegetVarianceSampling()The sampling variance of the collected values.java.lang.StringgetVarianceSamplingAsString()The sampling variance of the collected values as a String.protected org.elasticsearch.common.xcontent.XContentBuilderotherStatsToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class org.elasticsearch.search.aggregations.metrics.ParsedStats
declareStatsFields, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringMethods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getNameMethods inherited from interface org.elasticsearch.search.aggregations.metrics.Stats
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
-
Field Details
-
sumOfSquares
protected double sumOfSquares -
variance
protected double variance -
variancePopulation
protected double variancePopulation -
varianceSampling
protected double varianceSampling -
stdDeviation
protected double stdDeviation -
stdDeviationPopulation
protected double stdDeviationPopulation -
stdDeviationSampling
protected double stdDeviationSampling -
stdDeviationBoundUpper
protected double stdDeviationBoundUpper -
stdDeviationBoundLower
protected double stdDeviationBoundLower -
stdDeviationBoundUpperPopulation
protected double stdDeviationBoundUpperPopulation -
stdDeviationBoundLowerPopulation
protected double stdDeviationBoundLowerPopulation -
stdDeviationBoundUpperSampling
protected double stdDeviationBoundUpperSampling -
stdDeviationBoundLowerSampling
protected double stdDeviationBoundLowerSampling -
sum
protected double sum -
avg
protected double avg
-
-
Constructor Details
-
ParsedExtendedStats
public ParsedExtendedStats()
-
-
Method Details
-
getType
public java.lang.String getType()- Specified by:
getTypein interfaceAggregation- Overrides:
getTypein classParsedStats- Returns:
- a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
-
getSumOfSquares
public double getSumOfSquares()Description copied from interface:ExtendedStatsThe sum of the squares of the collected values.- Specified by:
getSumOfSquaresin interfaceExtendedStats
-
getVariance
public double getVariance()Description copied from interface:ExtendedStatsThe population variance of the collected values.- Specified by:
getVariancein interfaceExtendedStats
-
getVariancePopulation
public double getVariancePopulation()Description copied from interface:ExtendedStatsThe population variance of the collected values.- Specified by:
getVariancePopulationin interfaceExtendedStats
-
getVarianceSampling
public double getVarianceSampling()Description copied from interface:ExtendedStatsThe sampling variance of the collected values.- Specified by:
getVarianceSamplingin interfaceExtendedStats
-
getStdDeviation
public double getStdDeviation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
getStdDeviationin interfaceExtendedStats
-
getStdDeviationPopulation
public double getStdDeviationPopulation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
getStdDeviationPopulationin interfaceExtendedStats
-
getStdDeviationSampling
public double getStdDeviationSampling()Description copied from interface:ExtendedStatsThe sampling standard deviation of the collected values.- Specified by:
getStdDeviationSamplingin interfaceExtendedStats
-
getStdDeviationBound
Description copied from interface:ExtendedStatsThe upper or lower bounds of the stdDeviation- Specified by:
getStdDeviationBoundin interfaceExtendedStats
-
getStdDeviationAsString
public java.lang.String getStdDeviationAsString()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
getStdDeviationAsStringin interfaceExtendedStats
-
getStdDeviationPopulationAsString
public java.lang.String getStdDeviationPopulationAsString()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
getStdDeviationPopulationAsStringin interfaceExtendedStats
-
getStdDeviationSamplingAsString
public java.lang.String getStdDeviationSamplingAsString()Description copied from interface:ExtendedStatsThe sampling standard deviation of the collected values as a String.- Specified by:
getStdDeviationSamplingAsStringin interfaceExtendedStats
-
getStdDeviationBoundAsString
Description copied from interface:ExtendedStatsThe upper or lower bounds of stdDev of the collected values as a String.- Specified by:
getStdDeviationBoundAsStringin interfaceExtendedStats
-
getSumOfSquaresAsString
public java.lang.String getSumOfSquaresAsString()Description copied from interface:ExtendedStatsThe sum of the squares of the collected values as a String.- Specified by:
getSumOfSquaresAsStringin interfaceExtendedStats
-
getVarianceAsString
public java.lang.String getVarianceAsString()Description copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
getVarianceAsStringin interfaceExtendedStats
-
getVariancePopulationAsString
public java.lang.String getVariancePopulationAsString()Description copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
getVariancePopulationAsStringin interfaceExtendedStats
-
getVarianceSamplingAsString
public java.lang.String getVarianceSamplingAsString()Description copied from interface:ExtendedStatsThe sampling variance of the collected values as a String.- Specified by:
getVarianceSamplingAsStringin interfaceExtendedStats
-
otherStatsToXContent
protected org.elasticsearch.common.xcontent.XContentBuilder otherStatsToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Overrides:
otherStatsToXContentin classParsedStats- Throws:
java.io.IOException
-
declareExtendedStatsFields
protected static void declareExtendedStatsFields(org.elasticsearch.common.xcontent.ObjectParser<? extends ParsedExtendedStats,java.lang.Void> objectParser) -
fromXContent
public static ParsedExtendedStats fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name)
-