Class AvgAggregationResult
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.AvgAggregationResult
-
- All Implemented Interfaces:
IAggregationResult
,IValueAggregationResult
public class AvgAggregationResult extends java.lang.Object
AvgAggregation
result.- Since:
- 11.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext
context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
convertToFinalValue(double doubleValue)
Converts the given double value to the correct data type (ES always returns double).java.lang.String
getId()
Returns the identifier of the aggregation that produced this result.java.lang.Object
getValue()
Returns the value of this aggregation.protected double
getValue(co.elastic.clients.elasticsearch._types.aggregations.SingleMetricAggregateBase aggregation)
-
-
-
Method Detail
-
getValue
protected double getValue(co.elastic.clients.elasticsearch._types.aggregations.SingleMetricAggregateBase aggregation)
-
getValue
public java.lang.Object getValue()
Description copied from interface:IValueAggregationResult
Returns the value of this aggregation. The returned object type depends on how aggregation is performed. For example, aMinAggregation
performed in an integer field will produce an integer return value and anAvgAggregation
will always produce a double value.- Specified by:
getValue
in interfaceIValueAggregationResult
- Returns:
- the value of this aggregation.
-
convertToFinalValue
protected java.lang.Object convertToFinalValue(double doubleValue)
Converts the given double value to the correct data type (ES always returns double).- Parameters:
doubleValue
- the double value.- Returns:
- the correct value.
- Since:
- 11.0.0
-
getId
public java.lang.String getId()
Description copied from interface:IAggregationResult
Returns the identifier of the aggregation that produced this result.- Specified by:
getId
in interfaceIAggregationResult
- Returns:
- the identifier of the aggregation that produced this result.
-
-