Module org.elasticsearch.server
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,- Aggregation,- ExtendedStats,- NumericMetricsAggregation,- NumericMetricsAggregation.MultiValue,- Stats,- ToXContent,- ToXContentFragment
- Direct Known Subclasses:
- InternalExtendedStatsBucket
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationInternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.ExtendedStatsExtendedStats.BoundsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregationNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.search.aggregations.metrics.InternalStatscount, max, min, sumFields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationformatFields inherited from class org.elasticsearch.search.aggregations.InternalAggregationmetadata, nameFields inherited from interface org.elasticsearch.search.aggregations.AggregationTYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionInternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, Map<String, Object> metadata) Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfinalizeSampling(SamplingContext samplingContext) Called by the parent sampling context.doublegetSigma()doubleThe population standard deviation of the collected values.The population standard deviation of the collected values as a String.doubleThe upper or lower bounds of the stdDeviationThe upper or lower bounds of stdDev of the collected values as a String.doubleThe population standard deviation of the collected values.The population standard deviation of the collected values as a String.doubleThe sampling standard deviation of the collected values.The sampling standard deviation of the collected values as a String.doubleThe sum of the squares of the collected values.The sum of the squares of the collected values as a String.doubleThe population variance of the collected values.The population variance of the collected values as a String.doubleThe population variance of the collected values.The population variance of the collected values as a String.doubleThe sampling variance of the collected values.The sampling variance of the collected values as a String.Returns the name of the writeable objectinthashCode()protected XContentBuilderotherStatsToXContent(XContentBuilder builder, ToXContent.Params params) reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Reduces the given aggregations to a single one and returns it.doubleReturn the result of 1 value by nameReturn an iterable over all value names this multi value aggregation provides.protected voidMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalStatsdoWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValuegetProperty, sortValue, valueAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationmustReduceOnSingleInternalAgg, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregationcopyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, readSize, reducePipelines, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.AggregationgetMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.search.aggregations.metrics.StatsgetAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringMethods inherited from interface org.elasticsearch.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
InternalExtendedStatspublic InternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, Map<String, Object> metadata) 
- 
InternalExtendedStatsRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeOtherStatsTo- Overrides:
- writeOtherStatsToin class- InternalStats
- Throws:
- IOException
 
- 
getWriteableNameDescription copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
- getWriteableNamein interface- NamedWriteable
- Overrides:
- getWriteableNamein class- InternalStats
 
- 
valueDescription copied from interface:NumericMetricsAggregation.MultiValueReturn the result of 1 value by name- Specified by:
- valuein interface- NumericMetricsAggregation.MultiValue
- Overrides:
- valuein class- InternalStats
- Parameters:
- name- of the value
- Returns:
- the value
 
- 
valueNamesDescription copied from interface:NumericMetricsAggregation.MultiValueReturn an iterable over all value names this multi value aggregation provides. The iterable might be created on the fly, if you need to call this multiple times, please cache the result in a variable on caller side..- Specified by:
- valueNamesin interface- NumericMetricsAggregation.MultiValue
- Overrides:
- valueNamesin class- InternalStats
- Returns:
- iterable over all value names
 
- 
getSigmapublic double getSigma()
- 
getSumOfSquarespublic double getSumOfSquares()Description copied from interface:ExtendedStatsThe sum of the squares of the collected values.- Specified by:
- getSumOfSquaresin interface- ExtendedStats
 
- 
getVariancepublic double getVariance()Description copied from interface:ExtendedStatsThe population variance of the collected values.- Specified by:
- getVariancein interface- ExtendedStats
 
- 
getVariancePopulationpublic double getVariancePopulation()Description copied from interface:ExtendedStatsThe population variance of the collected values.- Specified by:
- getVariancePopulationin interface- ExtendedStats
 
- 
getVarianceSamplingpublic double getVarianceSampling()Description copied from interface:ExtendedStatsThe sampling variance of the collected values.- Specified by:
- getVarianceSamplingin interface- ExtendedStats
 
- 
getStdDeviationpublic double getStdDeviation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
- getStdDeviationin interface- ExtendedStats
 
- 
getStdDeviationPopulationpublic double getStdDeviationPopulation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
- getStdDeviationPopulationin interface- ExtendedStats
 
- 
getStdDeviationSamplingpublic double getStdDeviationSampling()Description copied from interface:ExtendedStatsThe sampling standard deviation of the collected values.- Specified by:
- getStdDeviationSamplingin interface- ExtendedStats
 
- 
getStdDeviationBoundDescription copied from interface:ExtendedStatsThe upper or lower bounds of the stdDeviation- Specified by:
- getStdDeviationBoundin interface- ExtendedStats
 
- 
getSumOfSquaresAsStringDescription copied from interface:ExtendedStatsThe sum of the squares of the collected values as a String.- Specified by:
- getSumOfSquaresAsStringin interface- ExtendedStats
 
- 
getVarianceAsStringDescription copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
- getVarianceAsStringin interface- ExtendedStats
 
- 
getVariancePopulationAsStringDescription copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
- getVariancePopulationAsStringin interface- ExtendedStats
 
- 
getVarianceSamplingAsStringDescription copied from interface:ExtendedStatsThe sampling variance of the collected values as a String.- Specified by:
- getVarianceSamplingAsStringin interface- ExtendedStats
 
- 
getStdDeviationAsStringDescription copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
- getStdDeviationAsStringin interface- ExtendedStats
 
- 
getStdDeviationPopulationAsStringDescription copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
- getStdDeviationPopulationAsStringin interface- ExtendedStats
 
- 
getStdDeviationSamplingAsStringDescription copied from interface:ExtendedStatsThe sampling standard deviation of the collected values as a String.- Specified by:
- getStdDeviationSamplingAsStringin interface- ExtendedStats
 
- 
getStdDeviationBoundAsStringDescription copied from interface:ExtendedStatsThe upper or lower bounds of stdDev of the collected values as a String.- Specified by:
- getStdDeviationBoundAsStringin interface- ExtendedStats
 
- 
reducepublic InternalExtendedStats reduce(List<InternalAggregation> aggregations, AggregationReduceContext 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 class- InternalStats
- See Also:
 
- 
finalizeSamplingDescription copied from class:InternalAggregationCalled by the parent sampling context. Should only ever be called once as some aggregations scale their internal values- Overrides:
- finalizeSamplingin class- InternalStats
- Parameters:
- samplingContext- the current sampling context
- Returns:
- new aggregation with the sampling context applied, could be the same aggregation instance if nothing needs to be done
 
- 
otherStatsToXContentprotected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
- otherStatsToXContentin class- InternalStats
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- InternalStats
 
- 
equals- Overrides:
- equalsin class- InternalStats
 
 
-