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,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.SingleValue
- Direct Known Subclasses:
InternalAvg,InternalBucketMetricValue,InternalCardinality,InternalMax,InternalMedianAbsoluteDeviation,InternalMin,InternalSimpleValue,InternalSum,InternalValueCount,InternalWeightedAvg
- 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 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.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueNested 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 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_DELIMITER -
Constructor Summary
Constructors Modifier Constructor Description protectedSingleValue(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> metadata)protectedSingleValue(StreamInput in)Read from a stream. -
Method Summary
Modifier and Type Method Description java.lang.ObjectgetProperty(java.util.List<java.lang.String> path)java.lang.StringgetValueAsString()doublesortValue(java.lang.String key)Get value to use when sorting by this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
equals, hashCode, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, doWriteTo, doXContentBody, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reduce, 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.NumericMetricsAggregation.SingleValue
value
-
Constructor Details
-
SingleValue
protected SingleValue(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> metadata) -
SingleValue
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
getValueAsString
public java.lang.String getValueAsString()- Specified by:
getValueAsStringin interfaceNumericMetricsAggregation.SingleValue
-
getProperty
public java.lang.Object getProperty(java.util.List<java.lang.String> path)- Specified by:
getPropertyin classInternalAggregation
-
sortValue
public final double sortValue(java.lang.String key)Description copied from class:InternalAggregationGet value to use when sorting by this aggregation.- Overrides:
sortValuein classInternalAggregation
-