private static class RexImpTable.BinaryImplementor extends Object implements NotNullImplementor
| Modifier and Type | Field and Description |
|---|---|
private String |
backupMethodName |
private static List<Primitive> |
COMP_OP_TYPES
Types that can be arguments to comparison operators such as
<. |
private static List<SqlBinaryOperator> |
COMPARISON_OPERATORS |
private ExpressionType |
expressionType |
static String |
METHOD_POSTFIX_FOR_ANY_TYPE |
| Constructor and Description |
|---|
BinaryImplementor(ExpressionType expressionType,
String backupMethodName) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
anyAnyOperands(RexCall call)
Returns whether any of a call's operands have ANY type.
|
private Expression |
callBackupMethodAnyType(RexToLixTranslator translator,
RexCall call,
List<Expression> expressions) |
Expression |
implement(RexToLixTranslator translator,
RexCall call,
List<Expression> expressions)
Implements a call with assumption that all the null-checking is
implemented by caller.
|
private Expression |
maybeBox(Expression expression) |
private static final List<Primitive> COMP_OP_TYPES
<.private static final List<SqlBinaryOperator> COMPARISON_OPERATORS
public static final String METHOD_POSTFIX_FOR_ANY_TYPE
private final ExpressionType expressionType
private final String backupMethodName
BinaryImplementor(ExpressionType expressionType, String backupMethodName)
public Expression implement(RexToLixTranslator translator, RexCall call, List<Expression> expressions)
NotNullImplementorimplement in interface NotNullImplementortranslator - translator to implement the codecall - call to implementexpressions - arguments of a callprivate boolean anyAnyOperands(RexCall call)
private Expression callBackupMethodAnyType(RexToLixTranslator translator, RexCall call, List<Expression> expressions)
private Expression maybeBox(Expression expression)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.