Class InternalNumericMetricsAggregation
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,Aggregation
- Direct Known Subclasses:
InternalNumericMetricsAggregation.MultiValue,InternalNumericMetricsAggregation.SingleValue
public abstract class InternalNumericMetricsAggregation extends InternalAggregation
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalNumericMetricsAggregation.MultiValuestatic classInternalNumericMetricsAggregation.SingleValueNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilderNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.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.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description protected DocValueFormatformatFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Constructor Summary
Constructors Modifier Constructor Description protectedInternalNumericMetricsAggregation(StreamInput in)Read from a stream. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()protected booleanmustReduceOnSingleInternalAgg()Signal the framework if the InternalAggregation.reduce(List, ReduceContext) phase needs to be called when there is only one InternalAggregation.doublesortValue(AggregationPath.PathElement head, java.util.Iterator<AggregationPath.PathElement> tail)Get value to use when sorting by a descendant of this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, doWriteTo, doXContentBody, forEachBucket, getMetadata, getName, getProperty, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reduce, reducePipelines, sortValue, toString, toXContent, writeSize, writeTo
-
Field Details
-
Constructor Details
-
InternalNumericMetricsAggregation
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
sortValue
public final double sortValue(AggregationPath.PathElement head, java.util.Iterator<AggregationPath.PathElement> tail)Description copied from class:InternalAggregationGet value to use when sorting by a descendant of this aggregation.- Overrides:
sortValuein classInternalAggregation
-
mustReduceOnSingleInternalAgg
protected boolean mustReduceOnSingleInternalAgg()Description copied from class:InternalAggregationSignal the framework if the InternalAggregation.reduce(List, ReduceContext) phase needs to be called when there is only one InternalAggregation.- Specified by:
mustReduceOnSingleInternalAggin classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalAggregation
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classInternalAggregation
-