Module org.elasticsearch.server
Class InternalNumericMetricsAggregation.SingleValue
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.SingleValue
- All Implemented Interfaces:
NamedWriteable,Writeable,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.SingleValue,ToXContent,ToXContentFragment
- Direct Known Subclasses:
InternalAvg,InternalBucketMetricValue,InternalCardinality,InternalMedianAbsoluteDeviation,InternalSimpleValue,InternalValueCount,InternalWeightedAvg,Max,Min,Sum
- Enclosing class:
InternalNumericMetricsAggregation
public abstract static class InternalNumericMetricsAggregation.SingleValue
extends InternalNumericMetricsAggregation
implements NumericMetricsAggregation.SingleValue
-
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.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.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
ConstructorsModifierConstructorDescriptionprotectedSingleValue(String name, DocValueFormat format, Map<String, Object> metadata) protectedRead from a stream.protectedSingleValue(StreamInput in, boolean readFormat) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(List<String> path) final SortValueGet value to use when sorting by this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
equals, hashCode, mustReduceOnSingleInternalAgg, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, copyWithRewritenBuckets, doWriteTo, doXContentBody, finalizeSampling, forEachBucket, getLeaderReducer, 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.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue
valueMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SingleValue
-
SingleValue
Read from a stream.- Throws:
IOException
-
SingleValue
Read from a stream.- Parameters:
readFormat- whether to read the "format" field- Throws:
IOException
-
-
Method Details
-
getValueAsString
- Specified by:
getValueAsStringin interfaceNumericMetricsAggregation.SingleValue
-
getProperty
- Specified by:
getPropertyin classInternalAggregation
-
sortValue
Description copied from class:InternalAggregationGet value to use when sorting by this aggregation.- Overrides:
sortValuein classInternalAggregation
-