public class NaryOperatorConverter extends Object implements DruidSqlOperatorConverter
| Modifier and Type | Field and Description |
|---|---|
private String |
druidOperatorName |
private SqlOperator |
operator |
| Constructor and Description |
|---|
NaryOperatorConverter(SqlOperator operator,
String druidOperatorName) |
| 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 druidOperatorName
public NaryOperatorConverter(SqlOperator operator, String druidOperatorName)
public SqlOperator calciteOperator()
DruidSqlOperatorConvertercalciteOperator in interface DruidSqlOperatorConverter@Nullable public 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.