NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, Aggregation
, NumericMetricsAggregation
, NumericMetricsAggregation.MultiValue
, ExtendedStats
, Stats
InternalExtendedStatsBucket
public class InternalExtendedStats extends InternalStats implements ExtendedStats
Aggregation.CommonFields
ExtendedStats.Bounds
InternalAggregation.ReduceContext
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
TYPED_KEYS_DELIMITER
metaData, name
format
count, max, min, sum
EMPTY_PARAMS
Constructor | Description |
---|---|
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) |
|
InternalExtendedStats(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | 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) |
getMetaData, getName, getType
getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
equals, hashCode
getProperty, valueAsString
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
toXContent
isFragment
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