public class DirectOperatorConversion extends Object implements DruidSqlOperatorConverter
| Modifier and Type | Field and Description |
|---|---|
private String |
druidFunctionName |
private SqlOperator |
operator |
| Constructor and Description |
|---|
DirectOperatorConversion(SqlOperator operator,
String druidFunctionName) |
| Modifier and Type | Method and Description |
|---|---|
SqlOperator |
calciteOperator()
Returns the calcite SQL operator corresponding to Druid operator.
|
String |
toDruidExpression(RexNode rexNode,
RelDataType rowType,
DruidQuery druidQuery)
Translate rexNode to valid Druid expression.
|
private final SqlOperator operator
private final String druidFunctionName
public DirectOperatorConversion(SqlOperator operator, String druidFunctionName)
public SqlOperator calciteOperator()
DruidSqlOperatorConvertercalciteOperator in interface DruidSqlOperatorConverterpublic String toDruidExpression(RexNode rexNode, RelDataType rowType, DruidQuery druidQuery)
DruidSqlOperatorConvertertoDruidExpression in interface DruidSqlOperatorConverterrexNode - rexNode to translate to Druid expressionrowType - row type associated with rexNodedruidQuery - druid query used to figure out configs/fields related like timeZoneCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.