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.InternalStats
org.elasticsearch.search.aggregations.metrics.InternalExtendedStats
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,ExtendedStats,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,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.SingleValueNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContextNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.ExtendedStats
ExtendedStats.BoundsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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.InternalStats
count, max, min, sumFields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
formatFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
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 booleanequals(java.lang.Object obj)doublegetSigma()doublegetStdDeviation()The standard deviation of the collected values.java.lang.StringgetStdDeviationAsString()The standard deviation of the collected values as a String.doublegetStdDeviationBound(ExtendedStats.Bounds bound)The upper or lower bounds of the stdDeviationjava.lang.StringgetStdDeviationBoundAsString(ExtendedStats.Bounds bound)The upper or lower bounds of stdDev of the collected values as a String.doublegetSumOfSquares()The sum of the squares of the collected values.java.lang.StringgetSumOfSquaresAsString()The sum of the squares of the collected values as a String.doublegetVariance()The variance of the collected values.java.lang.StringgetVarianceAsString()The variance of the collected values as a String.java.lang.StringgetWriteableName()Returns the name of the writeable objectinthashCode()protected XContentBuilderotherStatsToXContent(XContentBuilder builder, ToXContent.Params params)InternalExtendedStatsreduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)Reduces the given aggregations to a single one and returns it.doublevalue(java.lang.String name)protected voidwriteOtherStatsTo(StreamOutput out)Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalStats
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, valueAsStringMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, reducePipelines, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getTypeMethods inherited from interface org.elasticsearch.search.aggregations.metrics.Stats
getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsString
-
Constructor Details
-
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
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
writeOtherStatsTo
- Overrides:
writeOtherStatsToin classInternalStats- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable- Overrides:
getWriteableNamein classInternalStats
-
value
public double value(java.lang.String name)- Overrides:
valuein classInternalStats
-
getSigma
public double getSigma() -
getSumOfSquares
public double getSumOfSquares()Description copied from interface:ExtendedStatsThe sum of the squares of the collected values.- Specified by:
getSumOfSquaresin interfaceExtendedStats
-
getVariance
public double getVariance()Description copied from interface:ExtendedStatsThe variance of the collected values.- Specified by:
getVariancein interfaceExtendedStats
-
getStdDeviation
public double getStdDeviation()Description copied from interface:ExtendedStatsThe standard deviation of the collected values.- Specified by:
getStdDeviationin interfaceExtendedStats
-
getStdDeviationBound
Description copied from interface:ExtendedStatsThe upper or lower bounds of the stdDeviation- Specified by:
getStdDeviationBoundin interfaceExtendedStats
-
getSumOfSquaresAsString
public java.lang.String getSumOfSquaresAsString()Description copied from interface:ExtendedStatsThe sum of the squares of the collected values as a String.- Specified by:
getSumOfSquaresAsStringin interfaceExtendedStats
-
getVarianceAsString
public java.lang.String getVarianceAsString()Description copied from interface:ExtendedStatsThe variance of the collected values as a String.- Specified by:
getVarianceAsStringin interfaceExtendedStats
-
getStdDeviationAsString
public java.lang.String getStdDeviationAsString()Description copied from interface:ExtendedStatsThe standard deviation of the collected values as a String.- Specified by:
getStdDeviationAsStringin interfaceExtendedStats
-
getStdDeviationBoundAsString
Description copied from interface:ExtendedStatsThe upper or lower bounds of stdDev of the collected values as a String.- Specified by:
getStdDeviationBoundAsStringin interfaceExtendedStats
-
reduce
public InternalExtendedStats reduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)Description copied from class:InternalAggregationReduces the given aggregations to a single one and returns it. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). For best efficiency, when implementing, try reusing an existing instance (typically the first in the given list) to save on redundant object construction.- Overrides:
reducein classInternalStats
-
otherStatsToXContent
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Overrides:
otherStatsToXContentin classInternalStats- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalStats
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classInternalStats
-