public class DirectOperatorConversion extends Object implements SqlOperatorConversion
| Constructor and Description |
|---|
DirectOperatorConversion(org.apache.calcite.sql.SqlOperator operator,
String druidFunctionName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlOperator |
calciteOperator()
Returns the SQL operator corresponding to this function.
|
String |
getDruidFunctionName() |
DruidExpression |
toDruidExpression(PlannerContext plannerContext,
RowSignature rowSignature,
org.apache.calcite.rex.RexNode rexNode)
Translate a Calcite
RexNode to a Druid expression. |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoDruidFilter, toPostAggregatorpublic DirectOperatorConversion(org.apache.calcite.sql.SqlOperator operator,
String druidFunctionName)
public org.apache.calcite.sql.SqlOperator calciteOperator()
SqlOperatorConversioncalciteOperator in interface SqlOperatorConversionpublic DruidExpression toDruidExpression(PlannerContext plannerContext, RowSignature rowSignature, org.apache.calcite.rex.RexNode rexNode)
SqlOperatorConversionRexNode to a Druid expression.toDruidExpression in interface SqlOperatorConversionplannerContext - 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)public String getDruidFunctionName()
@Nullable public DruidExpression toDruidExpressionWithPostAggOperands(PlannerContext plannerContext, RowSignature rowSignature, org.apache.calcite.rex.RexNode rexNode, PostAggregatorVisitor postAggregatorVisitor)
SqlOperatorConversionRexNode to a Druid expression, with the possibility of having postagg operands.toDruidExpressionWithPostAggOperands in interface SqlOperatorConversionplannerContext - 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)Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.