public class BinaryOperatorConversion extends Object implements DruidSqlOperatorConverter
| Modifier and Type | Field and Description |
|---|---|
private String |
druidOperator |
private SqlOperator |
operator |
| Constructor and Description |
|---|
BinaryOperatorConversion(SqlOperator operator,
String druidOperator) |
| 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 druidOperator
public BinaryOperatorConversion(SqlOperator operator, String druidOperator)
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.