Class InternalExtendedStats
- java.lang.Object
-
- org.elasticsearch.search.aggregations.InternalAggregation
-
- org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
-
- org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
-
- org.elasticsearch.search.aggregations.metrics.stats.InternalStats
-
- org.elasticsearch.search.aggregations.metrics.stats.extended.InternalExtendedStats
-
- All Implemented Interfaces:
NamedWriteable
,Writeable
,ToXContent
,ToXContentFragment
,Aggregation
,NumericMetricsAggregation
,NumericMetricsAggregation.MultiValue
,ExtendedStats
,Stats
- Direct Known Subclasses:
InternalExtendedStatsBucket
public class InternalExtendedStats extends InternalStats implements ExtendedStats
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.stats.extended.ExtendedStats
ExtendedStats.Bounds
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.metrics.stats.InternalStats
count, max, min, sum
-
Fields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
format
-
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, name
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Modifier and Type Method Description protected boolean
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to theInternalAggregation.equals(Object)
method for this class.protected int
doHashCode()
Opportunity for subclasses to theInternalAggregation.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 stdDeviationjava.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 objectprotected XContentBuilder
otherStatsToXContent(XContentBuilder builder, ToXContent.Params params)
double
value(java.lang.String name)
protected void
writeOtherStatsTo(StreamOutput out)
-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.stats.InternalStats
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, valueAsString
-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
equals, hashCode
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Methods inherited from interface org.elasticsearch.search.aggregations.metrics.stats.Stats
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
InternalExtendedStats
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)
-
InternalExtendedStats
public InternalExtendedStats(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
writeOtherStatsTo
protected void writeOtherStatsTo(StreamOutput out) throws java.io.IOException
- Overrides:
writeOtherStatsTo
in classInternalStats
- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Overrides:
getWriteableName
in classInternalStats
-
value
public double value(java.lang.String name)
- Overrides:
value
in classInternalStats
-
getSigma
public double getSigma()
-
getSumOfSquares
public double getSumOfSquares()
Description copied from interface:ExtendedStats
The sum of the squares of the collected values.- Specified by:
getSumOfSquares
in interfaceExtendedStats
-
getVariance
public double getVariance()
Description copied from interface:ExtendedStats
The variance of the collected values.- Specified by:
getVariance
in interfaceExtendedStats
-
getStdDeviation
public double getStdDeviation()
Description copied from interface:ExtendedStats
The standard deviation of the collected values.- Specified by:
getStdDeviation
in interfaceExtendedStats
-
getStdDeviationBound
public double getStdDeviationBound(ExtendedStats.Bounds bound)
Description copied from interface:ExtendedStats
The upper or lower bounds of the stdDeviation- Specified by:
getStdDeviationBound
in interfaceExtendedStats
-
getSumOfSquaresAsString
public java.lang.String getSumOfSquaresAsString()
Description copied from interface:ExtendedStats
The sum of the squares of the collected values as a String.- Specified by:
getSumOfSquaresAsString
in interfaceExtendedStats
-
getVarianceAsString
public java.lang.String getVarianceAsString()
Description copied from interface:ExtendedStats
The variance of the collected values as a String.- Specified by:
getVarianceAsString
in interfaceExtendedStats
-
getStdDeviationAsString
public java.lang.String getStdDeviationAsString()
Description copied from interface:ExtendedStats
The standard deviation of the collected values as a String.- Specified by:
getStdDeviationAsString
in interfaceExtendedStats
-
getStdDeviationBoundAsString
public java.lang.String getStdDeviationBoundAsString(ExtendedStats.Bounds bound)
Description copied from interface:ExtendedStats
The upper or lower bounds of stdDev of the collected values as a String.- Specified by:
getStdDeviationBoundAsString
in interfaceExtendedStats
-
doReduce
public InternalExtendedStats doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Overrides:
doReduce
in classInternalStats
-
otherStatsToXContent
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Overrides:
otherStatsToXContent
in classInternalStats
- Throws:
java.io.IOException
-
doHashCode
protected int doHashCode()
Description copied from class:InternalAggregation
Opportunity for subclasses to theInternalAggregation.hashCode()
for this class.- Overrides:
doHashCode
in classInternalStats
-
doEquals
protected boolean doEquals(java.lang.Object obj)
Description copied from class:InternalAggregation
Opportunity for subclasses to add criteria to theInternalAggregation.equals(Object)
method for this class. This method can safely castobj
to the subclass since theInternalAggregation.equals(Object)
method checks thatobj
is the same class asthis
- Overrides:
doEquals
in classInternalStats
-
-