Class MaxAggregationResult
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.MaxAggregationResult
-
- All Implemented Interfaces:
IAggregationResult
,IValueAggregationResult
public class MaxAggregationResult extends Object
MaxAggregation
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 Object
convertToFinalValue(double doubleValue)
Converts the given double value to the correct data type (ES always returns double).String
getId()
Returns the identifier of the aggregation that produced this result.Object
getValue()
Returns the value of this aggregation.
-
-
-
Method Detail
-
getValue
public 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 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 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.
-
-