public class TrimOperatorConversion extends Object implements SqlOperatorConversion
| Constructor and Description |
|---|
TrimOperatorConversion() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlOperator |
calciteOperator()
Returns the SQL operator corresponding to this function.
|
static DruidExpression |
makeTrimExpression(org.apache.calcite.sql.fun.SqlTrimFunction.Flag trimStyle,
DruidExpression stringExpression,
DruidExpression charsExpression) |
DruidExpression |
toDruidExpression(PlannerContext plannerContext,
RowSignature rowSignature,
org.apache.calcite.rex.RexNode rexNode)
Translate a Calcite
RexNode to a Druid expression. |
@Nullable public static DruidExpression makeTrimExpression(org.apache.calcite.sql.fun.SqlTrimFunction.Flag trimStyle, DruidExpression stringExpression, DruidExpression charsExpression)
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)Copyright © 2011–2018. All rights reserved.