Class InternalNumericMetricsAggregation.SingleValue
java.lang.Object
org.opensearch.search.aggregations.InternalAggregation
org.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation
org.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation.SingleValue
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.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.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilder
Nested classes/interfaces inherited from interface org.opensearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.opensearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation
format
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleValue(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> metadata)
protected
SingleValue(StreamInput in)
Read from a stream. -
Method Summary
Modifier and Type Method Description java.lang.Object
getProperty(java.util.List<java.lang.String> path)
java.lang.String
getValueAsString()
double
sortValue(java.lang.String key)
Get value to use when sorting by this aggregation.Methods inherited from class org.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation
equals, hashCode, mustReduceOnSingleInternalAgg, sortValue
Methods inherited from class org.opensearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, doWriteTo, doXContentBody, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reduce, reducePipelines, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.opensearch.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:
getValueAsString
in interfaceNumericMetricsAggregation.SingleValue
-
getProperty
public java.lang.Object getProperty(java.util.List<java.lang.String> path)- Specified by:
getProperty
in classInternalAggregation
-
sortValue
public final double sortValue(java.lang.String key)Description copied from class:InternalAggregation
Get value to use when sorting by this aggregation.- Overrides:
sortValue
in classInternalAggregation
-