Class AbstractSubAggregationAwareAggregationResult
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.AbstractSubAggregationAwareAggregationResult
-
- All Implemented Interfaces:
IAggregationResult
,ISubAggregationAwareAggregationResult
public abstract class AbstractSubAggregationAwareAggregationResult extends Object implements ISubAggregationAwareAggregationResult
The abstract implementation of a aggregation result that have sub aggregations.- Since:
- 11.2.0
- Version:
- $Revision: 24260 $ $Date: 2020-12-02 19:10:55 -0300 (Wed, 02 Dec 2020) $
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractSubAggregationAwareAggregation
aggregation
protected lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext
context
protected Long
docCount
protected org.elasticsearch.search.aggregations.Aggregations
result
protected Map<String,IAggregationResult>
subAggregations
-
Constructor Summary
Constructors Constructor Description AbstractSubAggregationAwareAggregationResult(AbstractSubAggregationAwareAggregation aggregation, org.elasticsearch.search.aggregations.Aggregations result, lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext context)
Create a new instance;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDocCount()
Returns the document count at this aggregation.String
getId()
Returns the identifier of the aggregation that produced this result.Map<String,IAggregationResult>
getSubAggregations()
Returns the sub aggregations of this aggregation.
-
-
-
Field Detail
-
docCount
protected Long docCount
-
subAggregations
protected Map<String,IAggregationResult> subAggregations
-
aggregation
protected final AbstractSubAggregationAwareAggregation aggregation
-
result
protected final org.elasticsearch.search.aggregations.Aggregations result
-
context
protected final lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext context
-
-
Constructor Detail
-
AbstractSubAggregationAwareAggregationResult
public AbstractSubAggregationAwareAggregationResult(AbstractSubAggregationAwareAggregation aggregation, org.elasticsearch.search.aggregations.Aggregations result, lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext context)
Create a new instance;- Parameters:
aggregation
- the aggregation.result
- the result.context
- the parse context.- Since:
- 11.2.0
-
-
Method Detail
-
getSubAggregations
public Map<String,IAggregationResult> getSubAggregations()
Description copied from interface:ISubAggregationAwareAggregationResult
Returns the sub aggregations of this aggregation.- Specified by:
getSubAggregations
in interfaceISubAggregationAwareAggregationResult
- Returns:
- the sub aggregations of this aggregation.
-
getDocCount
public long getDocCount()
Description copied from interface:ISubAggregationAwareAggregationResult
Returns the document count at this aggregation.- Specified by:
getDocCount
in interfaceISubAggregationAwareAggregationResult
- Returns:
- the document count at 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.
-
-