Class CardinalityAggregationResult
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.CardinalityAggregationResult
-
- All Implemented Interfaces:
IAggregationResult
,IValueAggregationResult
public class CardinalityAggregationResult extends Object
CardinalityAggregation
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
-
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.
-
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.
-
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.
-
-