public class ParsedExtendedStats extends ParsedStats implements ExtendedStats
ExtendedStats.Bounds
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected double |
avg |
protected double |
stdDeviation |
protected double |
stdDeviationBoundLower |
protected double |
stdDeviationBoundUpper |
protected double |
sum |
protected double |
sumOfSquares |
protected double |
variance |
count, max, min, valueAsString
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedExtendedStats() |
Modifier and Type | Method and Description |
---|---|
protected static void |
declareExtendedStatsFields(ObjectParser<? extends ParsedExtendedStats,java.lang.Void> objectParser) |
static ParsedExtendedStats |
fromXContent(XContentParser parser,
java.lang.String name) |
double |
getStdDeviation()
The standard deviation of the collected values.
|
java.lang.String |
getStdDeviationAsString()
The standard deviation of the collected values as a String.
|
double |
getStdDeviationBound(ExtendedStats.Bounds bound)
The upper or lower bounds of the stdDeviation
|
java.lang.String |
getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
The upper or lower bounds of stdDev of the collected values as a String.
|
double |
getSumOfSquares()
The sum of the squares of the collected values.
|
java.lang.String |
getSumOfSquaresAsString()
The sum of the squares of the collected values as a String.
|
java.lang.String |
getType() |
double |
getVariance()
The variance of the collected values.
|
java.lang.String |
getVarianceAsString()
The variance of the collected values as a String.
|
protected XContentBuilder |
otherStatsToXContent(XContentBuilder builder,
ToXContent.Params params) |
declareStatsFields, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getMetaData, getName
isFragment, toXContent
protected double sumOfSquares
protected double variance
protected double stdDeviation
protected double stdDeviationBoundUpper
protected double stdDeviationBoundLower
protected double sum
protected double avg
public java.lang.String getType()
getType
in interface Aggregation
getType
in class ParsedStats
public double getSumOfSquares()
ExtendedStats
getSumOfSquares
in interface ExtendedStats
public double getVariance()
ExtendedStats
getVariance
in interface ExtendedStats
public double getStdDeviation()
ExtendedStats
getStdDeviation
in interface ExtendedStats
public double getStdDeviationBound(ExtendedStats.Bounds bound)
ExtendedStats
getStdDeviationBound
in interface ExtendedStats
public java.lang.String getStdDeviationAsString()
ExtendedStats
getStdDeviationAsString
in interface ExtendedStats
public java.lang.String getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
ExtendedStats
getStdDeviationBoundAsString
in interface ExtendedStats
public java.lang.String getSumOfSquaresAsString()
ExtendedStats
getSumOfSquaresAsString
in interface ExtendedStats
public java.lang.String getVarianceAsString()
ExtendedStats
getVarianceAsString
in interface ExtendedStats
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
otherStatsToXContent
in class ParsedStats
java.io.IOException
protected static void declareExtendedStatsFields(ObjectParser<? extends ParsedExtendedStats,java.lang.Void> objectParser)
public static ParsedExtendedStats fromXContent(XContentParser parser, java.lang.String name)