public abstract class SimpleSqlAggregator extends Object implements SqlAggregator
| Constructor and Description |
|---|
SimpleSqlAggregator() |
| Modifier and Type | Method and Description |
|---|---|
Aggregation |
toDruidAggregation(PlannerContext plannerContext,
RowSignature rowSignature,
VirtualColumnRegistry virtualColumnRegistry,
org.apache.calcite.rex.RexBuilder rexBuilder,
String name,
org.apache.calcite.rel.core.AggregateCall aggregateCall,
org.apache.calcite.rel.core.Project project,
List<Aggregation> existingAggregations,
boolean finalizeAggregations)
Returns a Druid Aggregation corresponding to a SQL
AggregateCall. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalciteFunction@Nullable public Aggregation toDruidAggregation(PlannerContext plannerContext, RowSignature rowSignature, VirtualColumnRegistry virtualColumnRegistry, org.apache.calcite.rex.RexBuilder rexBuilder, String name, org.apache.calcite.rel.core.AggregateCall aggregateCall, org.apache.calcite.rel.core.Project project, List<Aggregation> existingAggregations, boolean finalizeAggregations)
SqlAggregatorAggregateCall. This method should ignore filters;
they will be applied to your aggregator in a later step.toDruidAggregation in interface SqlAggregatorplannerContext - SQL planner contextrowSignature - input row signaturevirtualColumnRegistry - re-usable virtual column referencesrexBuilder - a rexBuilder, in case you need onename - desired output name of the aggregationaggregateCall - aggregate call objectproject - project that should be applied before aggregation; may be nullexistingAggregations - existing aggregations for this query; useful for re-using aggregations. May be safely
ignored if you do not want to re-use existing aggregations.finalizeAggregations - true if this query should include explicit finalization for all of its
aggregators, where required. This is set for subqueries where Druid's native query
layer does not do this automatically.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.