Class InternalMedianAbsoluteDeviation
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.SingleValue
org.elasticsearch.search.aggregations.metrics.InternalMedianAbsoluteDeviation
- All Implemented Interfaces:
- NamedWriteable,- Writeable,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentFragment,- Aggregation,- MedianAbsoluteDeviation,- NumericMetricsAggregation,- NumericMetricsAggregation.SingleValue
public class InternalMedianAbsoluteDeviation
extends InternalNumericMetricsAggregation.SingleValue
implements MedianAbsoluteDeviation
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationInternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregationInternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilderNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregationNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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.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.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoWriteTo(StreamOutput out)org.elasticsearch.common.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)booleandoubleReturns the median absolute deviation statistic computed for this aggregationReturns the name of the writeable objectinthashCode()reduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)Reduces the given aggregations to a single one and returns it.doublevalue()Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.SingleValuegetProperty, getValueAsString, sortValueMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationmustReduceOnSingleInternalAgg, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregationcopyWithRewritenBuckets, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, 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.NumericMetricsAggregation.SingleValuegetValueAsStringMethods inherited from interface org.elasticsearch.common.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
InternalMedianAbsoluteDeviation- Throws:
- IOException
 
 
- 
- 
Method Details- 
doWriteTo- Specified by:
- doWriteToin class- InternalAggregation
- Throws:
- IOException
 
- 
reducepublic InternalAggregation reduce(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.- Specified by:
- reducein class- InternalAggregation
- See Also:
- InternalAggregation.mustReduceOnSingleInternalAgg()
 
- 
doXContentBodypublic org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- doXContentBodyin class- InternalAggregation
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- InternalNumericMetricsAggregation
 
- 
equals- Overrides:
- equalsin class- InternalNumericMetricsAggregation
 
- 
getWriteableNameDescription copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
- getWriteableNamein interface- NamedWriteable
 
- 
valuepublic double value()- Specified by:
- valuein interface- NumericMetricsAggregation.SingleValue
 
- 
getMedianAbsoluteDeviationpublic double getMedianAbsoluteDeviation()Description copied from interface:MedianAbsoluteDeviationReturns the median absolute deviation statistic computed for this aggregation- Specified by:
- getMedianAbsoluteDeviationin interface- MedianAbsoluteDeviation
 
 
-