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 |
---|---|
protected boolean |
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
InternalExtendedStats |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
double |
getSigma() |
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
equals, hashCode
getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
clone, finalize, getClass, notify, notifyAll, 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 getSigma()
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
protected int doHashCode()
InternalAggregation
InternalAggregation.hashCode()
for this
class.doHashCode
in class InternalStats
protected boolean doEquals(java.lang.Object obj)
InternalAggregation
InternalAggregation.equals(Object)
method for this class.
This method can safely cast obj
to the subclass since the
InternalAggregation.equals(Object)
method checks that obj
is the same
class as this
doEquals
in class InternalStats