public class InternalExtendedStats extends InternalStats implements ExtendedStats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeExtendedStats.BoundsNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
count, max, min, sumvalueFormattermetaData, nameEMPTY_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, getSumAsStringgetProperty, valueAsStringgetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvg, getAvgAsString, getCount, getCountAsString, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringgetMetaData, getName, getPropertypublic 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 InternalStatsInternalAggregation.Type of this aggregationpublic double value(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 String getSumOfSquaresAsString()
ExtendedStatsgetSumOfSquaresAsString in interface ExtendedStatspublic String getVarianceAsString()
ExtendedStatsgetVarianceAsString in interface ExtendedStatspublic String getStdDeviationAsString()
ExtendedStatsgetStdDeviationAsString in interface ExtendedStatspublic String getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
ExtendedStatsgetStdDeviationBoundAsString in interface ExtendedStatspublic InternalExtendedStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalStatspublic void readOtherStatsFrom(StreamInput in) throws IOException
readOtherStatsFrom in class InternalStatsIOExceptionprotected void writeOtherStatsTo(StreamOutput out) throws IOException
writeOtherStatsTo in class InternalStatsIOExceptionprotected XContentBuilder otherStatsToXCotent(XContentBuilder builder, ToXContent.Params params) throws IOException
otherStatsToXCotent in class InternalStatsIOExceptionCopyright © 2009–2017. All rights reserved.