public class InternalExtendedStats extends InternalStats implements ExtendedStats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.ReduceContextExtendedStats.BoundsNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>count, max, min, sumformatmetaData, nameTYPED_KEYS_DELIMITEREMPTY_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, getSumAsStringgetProperty, valueAsStringgetMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringgetMetaData, getName, getTypeisFragment, toXContentpublic 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.IOExceptionprotected void writeOtherStatsTo(StreamOutput out) throws java.io.IOException
writeOtherStatsTo in class InternalStatsjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablegetWriteableName in class InternalStatspublic double value(java.lang.String name)
value in class InternalStatspublic double getSumOfSquares()
ExtendedStatsgetSumOfSquares in interface ExtendedStatspublic double getVariance()
ExtendedStatsgetVariance in interface ExtendedStatspublic double getStdDeviation()
ExtendedStatsgetStdDeviation in interface ExtendedStatspublic double getStdDeviationBound(ExtendedStats.Bounds bound)
ExtendedStatsgetStdDeviationBound in interface ExtendedStatspublic java.lang.String getSumOfSquaresAsString()
ExtendedStatsgetSumOfSquaresAsString in interface ExtendedStatspublic java.lang.String getVarianceAsString()
ExtendedStatsgetVarianceAsString in interface ExtendedStatspublic java.lang.String getStdDeviationAsString()
ExtendedStatsgetStdDeviationAsString in interface ExtendedStatspublic java.lang.String getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
ExtendedStatsgetStdDeviationBoundAsString in interface ExtendedStatspublic InternalExtendedStats doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalStatsprotected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
otherStatsToXContent in class InternalStatsjava.io.IOException