public class InternalExtendedStats extends InternalStats implements ExtendedStats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
InternalAggregation.ReduceContext
ExtendedStats.Bounds
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
count, max, min, sum
format
metaData, name
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
InternalExtendedStats(StreamInput in)
Read from a stream.
|
InternalExtendedStats(java.lang.String name,
long count,
double sum,
double min,
double max,
double sumOfSqrs,
double sigma,
DocValueFormat formatter,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalExtendedStats |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
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.
|
double |
getVariance()
The variance of the collected values.
|
java.lang.String |
getVarianceAsString()
The variance of the collected values as a String.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
protected XContentBuilder |
otherStatsToXContent(XContentBuilder builder,
ToXContent.Params params) |
double |
value(java.lang.String name) |
protected void |
writeOtherStatsTo(StreamOutput out) |
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getProperty, valueAsString
getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getMetaData, getName, getType
isFragment, toXContent
public InternalExtendedStats(java.lang.String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
public InternalExtendedStats(StreamInput in) throws java.io.IOException
java.io.IOException
protected void writeOtherStatsTo(StreamOutput out) throws java.io.IOException
writeOtherStatsTo
in class InternalStats
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
getWriteableName
in class InternalStats
public double value(java.lang.String name)
value
in class InternalStats
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 getSumOfSquaresAsString()
ExtendedStats
getSumOfSquaresAsString
in interface ExtendedStats
public java.lang.String getVarianceAsString()
ExtendedStats
getVarianceAsString
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 InternalExtendedStats doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalStats
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
otherStatsToXContent
in class InternalStats
java.io.IOException