public class InternalExtendedStats extends InternalStats implements ExtendedStats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
ExtendedStats.Bounds
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
count, max, min, sum
valueFormatter
metaData, name
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
InternalExtendedStats() |
|
InternalExtendedStats(String name,
long count,
double sum,
double min,
double max,
double sumOfSqrs,
double sigma,
ValueFormatter formatter,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalExtendedStats |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
double |
getStdDeviation()
The standard deviation of the collected values.
|
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
|
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.
|
String |
getSumOfSquaresAsString()
The sum of the squares of the collected values as a String.
|
double |
getVariance()
The variance of the collected values.
|
String |
getVarianceAsString()
The variance of the collected values as a String.
|
protected XContentBuilder |
otherStatsToXCotent(XContentBuilder builder,
ToXContent.Params params) |
void |
readOtherStatsFrom(StreamInput in) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
double |
value(String name) |
protected void |
writeOtherStatsTo(StreamOutput out) |
doReadFrom, doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getProperty, valueAsString
getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
getMetaData, getName, getProperty
public static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
protected InternalExtendedStats()
public InternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, ValueFormatter formatter, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type
in class InternalStats
InternalAggregation.Type
of this aggregationpublic double value(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 String getSumOfSquaresAsString()
ExtendedStats
getSumOfSquaresAsString
in interface ExtendedStats
public String getVarianceAsString()
ExtendedStats
getVarianceAsString
in interface ExtendedStats
public String getStdDeviationAsString()
ExtendedStats
getStdDeviationAsString
in interface ExtendedStats
public String getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
ExtendedStats
getStdDeviationBoundAsString
in interface ExtendedStats
public InternalExtendedStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalStats
public void readOtherStatsFrom(StreamInput in) throws IOException
readOtherStatsFrom
in class InternalStats
IOException
protected void writeOtherStatsTo(StreamOutput out) throws IOException
writeOtherStatsTo
in class InternalStats
IOException
protected XContentBuilder otherStatsToXCotent(XContentBuilder builder, ToXContent.Params params) throws IOException
otherStatsToXCotent
in class InternalStats
IOException
Copyright © 2009–2016. All rights reserved.