Package lumis.portal.bigdata.query
Class AvgAggregation
- java.lang.Object
-
- lumis.portal.bigdata.query.AvgAggregation
-
- All Implemented Interfaces:
IAggregation
,IFieldAwareAggregation
@StableMinor(version="17.0", sinceVersion="11.0") public class AvgAggregation extends java.lang.Object
Aggregation that returns in a value bucket the average value for a given (numeric) field. Produces anIValueAggregationResult
. Only supported by the following data types:- Since:
- 11.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
id
-
Constructor Summary
Constructors Constructor Description AvgAggregation(java.lang.String id, DocumentTypeField field)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentTypeField
getField()
Returns the field this aggregation is bound to.java.lang.String
getId()
Returns the aggregation identifier.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.bigdata.query.IAggregation
getId
-
-
-
-
Constructor Detail
-
AvgAggregation
public AvgAggregation(java.lang.String id, DocumentTypeField field)
Creates a new instance.- Parameters:
id
- the aggregation identifier.field
- the field that aggregation will be performed on.- Since:
- 11.0.0
-
-
Method Detail
-
getField
public DocumentTypeField getField()
Description copied from interface:IFieldAwareAggregation
Returns the field this aggregation is bound to.- Specified by:
getField
in interfaceIFieldAwareAggregation
- Returns:
- the field this aggregation is bound to.
-
getId
public java.lang.String getId()
Description copied from interface:IAggregation
Returns the aggregation identifier.- Specified by:
getId
in interfaceIAggregation
- Returns:
- the aggregation identifier.
-
-