Package org.apache.calcite.adapter.druid
Interface DruidSqlOperatorConverter
-
- All Known Implementing Classes:
BinaryOperatorConversion
,CeilOperatorConversion
,DirectOperatorConversion
,DruidSqlCastConverter
,ExtractOperatorConversion
,FloorOperatorConversion
,NaryOperatorConverter
,SubstringOperatorConversion
,UnaryPrefixOperatorConversion
,UnarySuffixOperatorConversion
public interface DruidSqlOperatorConverter
Defines how to convert RexNode with a given calcite SQL operator to Druid expressions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SqlOperator
calciteOperator()
Returns the calcite SQL operator corresponding to Druid operator.java.lang.String
toDruidExpression(RexNode rexNode, RelDataType rowType, DruidQuery druidQuery)
Translate rexNode to valid Druid expression.
-
-
-
Method Detail
-
calciteOperator
SqlOperator calciteOperator()
Returns the calcite SQL operator corresponding to Druid operator.- Returns:
- operator
-
toDruidExpression
@Nullable java.lang.String toDruidExpression(RexNode rexNode, RelDataType rowType, DruidQuery druidQuery)
Translate rexNode to valid Druid expression.- Parameters:
rexNode
- rexNode to translate to Druid expressionrowType
- row type associated with rexNodedruidQuery
- druid query used to figure out configs/fields related like timeZone- Returns:
- valid Druid expression or null if it can not convert the rexNode
-
-