public interface SqlOperatorConversion
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlOperator |
calciteOperator()
Returns the SQL operator corresponding to this function.
|
DruidExpression |
toDruidExpression(PlannerContext plannerContext,
RowSignature rowSignature,
org.apache.calcite.rex.RexNode rexNode)
Translate a Calcite
RexNode to a Druid expression. |
default DruidExpression |
toDruidExpressionWithPostAggOperands(PlannerContext plannerContext,
RowSignature rowSignature,
org.apache.calcite.rex.RexNode rexNode,
PostAggregatorVisitor postAggregatorVisitor)
Translate a Calcite
RexNode to a Druid expression, with the possibility of having postagg operands. |
default DimFilter |
toDruidFilter(PlannerContext plannerContext,
RowSignature rowSignature,
VirtualColumnRegistry virtualColumnRegistry,
org.apache.calcite.rex.RexNode rexNode)
Returns a Druid filter corresponding to a Calcite
RexNode used as a filter condition. |
default PostAggregator |
toPostAggregator(PlannerContext plannerContext,
RowSignature querySignature,
org.apache.calcite.rex.RexNode rexNode,
PostAggregatorVisitor postAggregatorVisitor)
Returns a Druid PostAggregator corresponding to a Calcite
RexNode used to transform a row after
aggregation has occurred. |
org.apache.calcite.sql.SqlOperator calciteOperator()
@Nullable DruidExpression toDruidExpression(PlannerContext plannerContext, RowSignature rowSignature, org.apache.calcite.rex.RexNode rexNode)
RexNode to a Druid expression.plannerContext - SQL planner contextrowSignature - signature of the rows to be extracted fromrexNode - expression meant to be applied on top of the rowsExpressions.toDruidExpression(PlannerContext, RowSignature, RexNode)@Nullable default DruidExpression toDruidExpressionWithPostAggOperands(PlannerContext plannerContext, RowSignature rowSignature, org.apache.calcite.rex.RexNode rexNode, PostAggregatorVisitor postAggregatorVisitor)
RexNode to a Druid expression, with the possibility of having postagg operands.plannerContext - SQL planner contextrowSignature - signature of the rows to be extracted fromrexNode - expression meant to be applied on top of the rowspostAggregatorVisitor - visitor that manages postagg names and tracks postaggs that were created as
by the translationExpressions.toDruidExpression(PlannerContext, RowSignature, RexNode)@Nullable default DimFilter toDruidFilter(PlannerContext plannerContext, RowSignature rowSignature, @Nullable VirtualColumnRegistry virtualColumnRegistry, org.apache.calcite.rex.RexNode rexNode)
RexNode used as a filter condition.plannerContext - SQL planner contextrowSignature - input row signaturevirtualColumnRegistry - re-usable virtual column referencesrexNode - filter expression rex node@Nullable default PostAggregator toPostAggregator(PlannerContext plannerContext, RowSignature querySignature, org.apache.calcite.rex.RexNode rexNode, PostAggregatorVisitor postAggregatorVisitor)
RexNode used to transform a row after
aggregation has occurred.plannerContext - SQL planner contextquerySignature - signature of the rows to be extracted fromrexNode - expression meant to be applied on top of the rowspostAggregatorVisitor - visitor that manages postagg names and tracks postaggs that were created
by the translationCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.