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 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) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISubAggregationAwareAggregation
addSubAggregation(IAggregation aggregation)
Adds the given sub-aggregation.ISubAggregationAwareAggregation
addSubAggregations(List<IAggregation> aggregations)
Adds the given sub-aggregations.ISubAggregationAwareAggregation
addSubAggregations(IAggregation... aggregations)
Adds the given sub-aggregations.String
getId()
Returns the aggregation identifier.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
-
-
-
-
Field Detail
-
id
protected final String id
-
-
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 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(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 String getId()
Description copied from interface:IAggregation
Returns the aggregation identifier.- Specified by:
getId
in interfaceIAggregation
- Returns:
- the aggregation identifier.
-
-