Class AbstractSubAggregationAwareAggregationResult
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.AbstractSubAggregationAwareAggregationResult
-
- All Implemented Interfaces:
IAggregationResult
,ISubAggregationAwareAggregationResult
public abstract class AbstractSubAggregationAwareAggregationResult extends java.lang.Object implements ISubAggregationAwareAggregationResult
The abstract implementation of a aggregation result that have sub aggregations.- Since:
- 11.2.0
- Version:
- $Revision: 25886 $ $Date: 2023-09-12 18:05:57 -0300 (Tue, 12 Sep 2023) $
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractSubAggregationAwareAggregation
aggregation
protected lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext
context
protected java.lang.Long
docCount
protected java.util.Map<java.lang.String,co.elastic.clients.elasticsearch._types.aggregations.Aggregate>
result
protected java.util.Map<java.lang.String,IAggregationResult>
subAggregations
-
Constructor Summary
Constructors Constructor Description AbstractSubAggregationAwareAggregationResult(AbstractSubAggregationAwareAggregation aggregation, java.util.Map<java.lang.String,co.elastic.clients.elasticsearch._types.aggregations.Aggregate> 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.java.lang.String
getId()
Returns the identifier of the aggregation that produced this result.java.util.Map<java.lang.String,IAggregationResult>
getSubAggregations()
Returns the sub aggregations of this aggregation.
-
-
-
Field Detail
-
docCount
protected java.lang.Long docCount
-
subAggregations
protected java.util.Map<java.lang.String,IAggregationResult> subAggregations
-
aggregation
protected final AbstractSubAggregationAwareAggregation aggregation
-
result
protected final java.util.Map<java.lang.String,co.elastic.clients.elasticsearch._types.aggregations.Aggregate> result
-
context
protected final lumis.portal.bigdata.elasticsearch.IFilterParser.ParseContext context
-
-
Constructor Detail
-
AbstractSubAggregationAwareAggregationResult
public AbstractSubAggregationAwareAggregationResult(AbstractSubAggregationAwareAggregation aggregation, java.util.Map<java.lang.String,co.elastic.clients.elasticsearch._types.aggregations.Aggregate> 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 java.util.Map<java.lang.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 java.lang.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.
-
-