Class AggregationResult
- java.lang.Object
-
- org.apache.pinot.common.response.broker.AggregationResult
-
public class AggregationResult extends Object
This class models the aggregation and aggregationGroupBy sections of query response.
-
-
Constructor Summary
Constructors Constructor Description AggregationResult()Default constructor, required by JSON de-serializer.AggregationResult(String function, Serializable value)Constructor for aggregation response.AggregationResult(List<GroupByResult> group, List<String> groupByColumns, String function)Constructor for aggregationGroupByResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFunction()Returns the aggregation function name.List<String>getGroupByColumns()Get groupByColumns for the aggregation function.List<GroupByResult>getGroupByResult()Set groupByResults for the aggregation function.SerializablegetValue()Returns the aggregation function value.voidsetFunction(String function)Set the aggregation function name.voidsetGroupByColumns(List<String> groupByColumns)Set groupByColumns for the aggregation function.voidsetGroupByResult(List<GroupByResult> groupByResult)Get groupByResults for the aggregation function.voidsetValue(Serializable value)Set the aggregation function value.
-
-
-
Constructor Detail
-
AggregationResult
public AggregationResult()
Default constructor, required by JSON de-serializer.
-
AggregationResult
public AggregationResult(String function, Serializable value)
Constructor for aggregation response.- Parameters:
function-value-
-
AggregationResult
public AggregationResult(List<GroupByResult> group, List<String> groupByColumns, String function)
Constructor for aggregationGroupByResponse.- Parameters:
group-groupByColumns-function-
-
-
Method Detail
-
getFunction
public String getFunction()
Returns the aggregation function name.- Returns:
-
setFunction
public void setFunction(String function)
Set the aggregation function name.- Parameters:
function-
-
getValue
public Serializable getValue()
Returns the aggregation function value.- Returns:
-
setValue
public void setValue(Serializable value)
Set the aggregation function value.- Parameters:
value-
-
getGroupByResult
public List<GroupByResult> getGroupByResult()
Set groupByResults for the aggregation function.- Returns:
-
setGroupByResult
public void setGroupByResult(List<GroupByResult> groupByResult)
Get groupByResults for the aggregation function.- Parameters:
groupByResult-
-
getGroupByColumns
public List<String> getGroupByColumns()
Get groupByColumns for the aggregation function.- Returns:
-
-