Package lumis.portal.bigdata.query
Class AbstractSubAggregationAwareAggregation
- java.lang.Object
-
- lumis.portal.bigdata.query.AbstractSubAggregationAwareAggregation
-
- All Implemented Interfaces:
IAggregation
,ISubAggregationAwareAggregation
- Direct Known Subclasses:
DateHistogramAggregation
,DateRangeAggregation
,FilterAggregation
,GeoDistanceAggregation
,HistogramAggregation
,NestedObjectAggregation
,ReverseNestedAggregation
,TermsAggregation
public abstract class AbstractSubAggregationAwareAggregation extends java.lang.Object implements ISubAggregationAwareAggregation
The abstract implementation of a part of aggregation with sub aggregations.- Since:
- 11.2.0
- Version:
- $Revision: 23359 $ $Date: 2019-11-25 18:15:59 -0300 (Mon, 25 Nov 2019) $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISubAggregationAwareAggregation
addSubAggregation(IAggregation aggregation)
Adds the given sub-aggregation.ISubAggregationAwareAggregation
addSubAggregations(java.util.List<IAggregation> aggregations)
Adds the given sub-aggregations.ISubAggregationAwareAggregation
addSubAggregations(IAggregation... aggregations)
Adds the given sub-aggregations.java.lang.String
getId()
Returns the aggregation identifier.java.util.List<IAggregation>
getSubAggregations()
Returns an unmodifiable list of the sub-aggregations.-
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
-
-
-
-
Method Detail
-
addSubAggregation
public ISubAggregationAwareAggregation addSubAggregation(IAggregation aggregation)
Description copied from interface:ISubAggregationAwareAggregation
Adds the given sub-aggregation.- Specified by:
addSubAggregation
in interfaceISubAggregationAwareAggregation
- Parameters:
aggregation
- the sub-aggregations- Returns:
- this aggregation for chaining.
-
getSubAggregations
public java.util.List<IAggregation> getSubAggregations()
Description copied from interface:ISubAggregationAwareAggregation
Returns an unmodifiable list of the sub-aggregations.- Specified by:
getSubAggregations
in interfaceISubAggregationAwareAggregation
- Returns:
- an unmodifiable list of the sub-aggregations.
-
addSubAggregations
public ISubAggregationAwareAggregation addSubAggregations(IAggregation... aggregations)
Description copied from interface:ISubAggregationAwareAggregation
Adds the given sub-aggregations.- Specified by:
addSubAggregations
in interfaceISubAggregationAwareAggregation
- Parameters:
aggregations
- the sub-aggregations.- Returns:
- this aggregation for chaining.
-
addSubAggregations
public ISubAggregationAwareAggregation addSubAggregations(java.util.List<IAggregation> aggregations)
Description copied from interface:ISubAggregationAwareAggregation
Adds the given sub-aggregations.- Specified by:
addSubAggregations
in interfaceISubAggregationAwareAggregation
- Parameters:
aggregations
- the sub-aggregations.- Returns:
- this aggregation for chaining.
-
getId
public java.lang.String getId()
Description copied from interface:IAggregation
Returns the aggregation identifier.- Specified by:
getId
in interfaceIAggregation
- Returns:
- the aggregation identifier.
-
-