Module org.elasticsearch.server
Class InternalNumericMetricsAggregation
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
- All Implemented Interfaces:
NamedWriteable
,Writeable
,Aggregation
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
InternalNumericMetricsAggregation.MultiValue
,InternalNumericMetricsAggregation.SingleValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Read from a stream.protected
InternalNumericMetricsAggregation
(StreamInput in, boolean readFormat) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected boolean
Signal the framework if the AggregatorReducer phase needs to be called when there is only one InternalAggregation.final SortValue
Get value to use when sorting by a descendant of this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, copyWithRewritenBuckets, doWriteTo, doXContentBody, finalizeSampling, forEachBucket, getLeaderReducer, getMetadata, getName, getProperty, getProperty, getReducer, getType, readSize, reducePipelines, sortValue, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
format
-
-
Constructor Details
-
InternalNumericMetricsAggregation
Read from a stream.- Throws:
IOException
-
InternalNumericMetricsAggregation
Read from a stream.- Parameters:
readFormat
- whether to read the "format" field Should betrue
iff the "format" field is being written to the wire by the agg- Throws:
IOException
-
-
Method Details
-
sortValue
public final SortValue sortValue(AggregationPath.PathElement head, Iterator<AggregationPath.PathElement> tail) Description copied from class:InternalAggregation
Get value to use when sorting by a descendant of this aggregation.- Overrides:
sortValue
in classInternalAggregation
-
mustReduceOnSingleInternalAgg
protected boolean mustReduceOnSingleInternalAgg()Description copied from class:InternalAggregation
Signal the framework if the AggregatorReducer phase needs to be called when there is only one InternalAggregation.- Specified by:
mustReduceOnSingleInternalAgg
in classInternalAggregation
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalAggregation
-
equals
- Overrides:
equals
in classInternalAggregation
-