public interface SqlAggregator
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlAggFunction |
calciteFunction()
Returns the SQL operator corresponding to this aggregation function.
|
Aggregation |
toDruidAggregation(String name,
RowSignature rowSignature,
PlannerContext plannerContext,
List<Aggregation> existingAggregations,
org.apache.calcite.rel.core.Project project,
org.apache.calcite.rel.core.AggregateCall aggregateCall,
DimFilter filter)
Returns Druid Aggregation corresponding to a SQL
AggregateCall. |
org.apache.calcite.sql.SqlAggFunction calciteFunction()
@Nullable Aggregation toDruidAggregation(String name, RowSignature rowSignature, PlannerContext plannerContext, List<Aggregation> existingAggregations, org.apache.calcite.rel.core.Project project, org.apache.calcite.rel.core.AggregateCall aggregateCall, DimFilter filter)
AggregateCall.name - desired output name of the aggregationrowSignature - signature of the rows being aggregatedplannerContext - SQL planner contextexistingAggregations - existing aggregations for this query; useful for re-using aggregations. May be safely
ignored if you do not want to re-use existing aggregations.project - SQL projection to apply before the aggregate call, may be nullaggregateCall - SQL aggregate callfilter - filter that should be applied to the aggregation, may be nullCopyright © 2011–2017. All rights reserved.