private static class RexImpTable.BinaryImplementor extends java.lang.Object implements NotNullImplementor
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
backupMethodName |
private static java.util.List<Primitive> |
COMP_OP_TYPES
Types that can be arguments to comparison operators such as
< . |
private static java.util.List<SqlBinaryOperator> |
COMPARISON_OPERATORS |
private ExpressionType |
expressionType |
static java.lang.String |
METHOD_POSTFIX_FOR_ANY_TYPE |
Constructor and Description |
---|
BinaryImplementor(ExpressionType expressionType,
java.lang.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,
java.util.List<Expression> expressions) |
Expression |
implement(RexToLixTranslator translator,
RexCall call,
java.util.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 java.util.List<Primitive> COMP_OP_TYPES
<
.private static final java.util.List<SqlBinaryOperator> COMPARISON_OPERATORS
public static final java.lang.String METHOD_POSTFIX_FOR_ANY_TYPE
private final ExpressionType expressionType
private final java.lang.String backupMethodName
BinaryImplementor(ExpressionType expressionType, java.lang.String backupMethodName)
public Expression implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> expressions)
NotNullImplementor
implement
in interface NotNullImplementor
translator
- translator to implement the codecall
- call to implementexpressions
- arguments of a callprivate boolean anyAnyOperands(RexCall call)
private Expression callBackupMethodAnyType(RexToLixTranslator translator, RexCall call, java.util.List<Expression> expressions)
private Expression maybeBox(Expression expression)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.