public class QuantileSqlAggregator extends Object implements SqlAggregator
Constructor and Description |
---|
QuantileSqlAggregator() |
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 . |
public org.apache.calcite.sql.SqlAggFunction calciteFunction()
SqlAggregator
calciteFunction
in interface SqlAggregator
public 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)
SqlAggregator
AggregateCall
.toDruidAggregation
in interface SqlAggregator
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.