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 Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueNested 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.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_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionInternalExtendedStats(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 Summary
Modifier and TypeMethodDescriptionbooleanfinalizeSampling(SamplingContext samplingContext) Called by the parent sampling context.protected AggregatorReducergetLeaderReducer(AggregationReduceContext reduceContext, int size) Return an object that Reduces several aggregations to a single one.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) 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.InternalStats
doWriteTo, doXContentBody, getAvg, getAvgAsString, getCount, getMax, getMaxAsString, getMin, getMinAsString, getSum, getSumAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, sortValue, valueAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
mustReduceOnSingleInternalAgg, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, copyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getReducer, getType, 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, getSumAsStringMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
InternalExtendedStats
public InternalExtendedStats(String name, long count, double sum, double min, double max, double sumOfSqrs, double sigma, DocValueFormat formatter, Map<String, Object> metadata) -
InternalExtendedStats
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeOtherStatsTo
- Overrides:
writeOtherStatsToin classInternalStats- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable- Overrides:
getWriteableNamein classInternalStats
-
value
Description copied from interface:NumericMetricsAggregation.MultiValueReturn the result of 1 value by name- Specified by:
valuein interfaceNumericMetricsAggregation.MultiValue- Overrides:
valuein classInternalStats- Parameters:
name- of the value- Returns:
- the value
-
valueNames
Description 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 interfaceNumericMetricsAggregation.MultiValue- Overrides:
valueNamesin classInternalStats- Returns:
- iterable over all value names
-
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 population variance of the collected values.- Specified by:
getVariancein interfaceExtendedStats
-
getVariancePopulation
public double getVariancePopulation()Description copied from interface:ExtendedStatsThe population variance of the collected values.- Specified by:
getVariancePopulationin interfaceExtendedStats
-
getVarianceSampling
public double getVarianceSampling()Description copied from interface:ExtendedStatsThe sampling variance of the collected values.- Specified by:
getVarianceSamplingin interfaceExtendedStats
-
getStdDeviation
public double getStdDeviation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
getStdDeviationin interfaceExtendedStats
-
getStdDeviationPopulation
public double getStdDeviationPopulation()Description copied from interface:ExtendedStatsThe population standard deviation of the collected values.- Specified by:
getStdDeviationPopulationin interfaceExtendedStats
-
getStdDeviationSampling
public double getStdDeviationSampling()Description copied from interface:ExtendedStatsThe sampling standard deviation of the collected values.- Specified by:
getStdDeviationSamplingin interfaceExtendedStats
-
getStdDeviationBound
Description copied from interface:ExtendedStatsThe upper or lower bounds of the stdDeviation- Specified by:
getStdDeviationBoundin interfaceExtendedStats
-
getSumOfSquaresAsString
Description copied from interface:ExtendedStatsThe sum of the squares of the collected values as a String.- Specified by:
getSumOfSquaresAsStringin interfaceExtendedStats
-
getVarianceAsString
Description copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
getVarianceAsStringin interfaceExtendedStats
-
getVariancePopulationAsString
Description copied from interface:ExtendedStatsThe population variance of the collected values as a String.- Specified by:
getVariancePopulationAsStringin interfaceExtendedStats
-
getVarianceSamplingAsString
Description copied from interface:ExtendedStatsThe sampling variance of the collected values as a String.- Specified by:
getVarianceSamplingAsStringin interfaceExtendedStats
-
getStdDeviationAsString
Description copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
getStdDeviationAsStringin interfaceExtendedStats
-
getStdDeviationPopulationAsString
Description copied from interface:ExtendedStatsThe population standard deviation of the collected values as a String.- Specified by:
getStdDeviationPopulationAsStringin interfaceExtendedStats
-
getStdDeviationSamplingAsString
Description copied from interface:ExtendedStatsThe sampling standard deviation of the collected values as a String.- Specified by:
getStdDeviationSamplingAsStringin interfaceExtendedStats
-
getStdDeviationBoundAsString
Description copied from interface:ExtendedStatsThe upper or lower bounds of stdDev of the collected values as a String.- Specified by:
getStdDeviationBoundAsStringin interfaceExtendedStats
-
getLeaderReducer
Description copied from class:InternalAggregationReturn an object that Reduces several aggregations to a single one. This method is called whenInternalAggregation.canLeadReduction()returns true and expects an reducer that produces the right result.- Overrides:
getLeaderReducerin classInternalStats
-
finalizeSampling
Description copied from class:InternalAggregationCalled by the parent sampling context. Should only ever be called once as some aggregations scale their internal values- Overrides:
finalizeSamplingin classInternalStats- 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
-
asIndexableMap
-
otherStatsToXContent
protected XContentBuilder otherStatsToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
otherStatsToXContentin classInternalStats- Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalStats
-
equals
- Overrides:
equalsin classInternalStats
-