Class RexImpTable.BinaryImplementor
- java.lang.Object
-
- org.apache.calcite.adapter.enumerable.RexImpTable.BinaryImplementor
-
- All Implemented Interfaces:
NotNullImplementor
- Enclosing class:
- RexImpTable
private static class RexImpTable.BinaryImplementor extends java.lang.Object implements NotNullImplementor
Implementor for binary operators.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description BinaryImplementor(ExpressionType expressionType, java.lang.String backupMethodName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
COMP_OP_TYPES
private static final java.util.List<Primitive> COMP_OP_TYPES
Types that can be arguments to comparison operators such as<
.
-
COMPARISON_OPERATORS
private static final java.util.List<SqlBinaryOperator> COMPARISON_OPERATORS
-
METHOD_POSTFIX_FOR_ANY_TYPE
public static final java.lang.String METHOD_POSTFIX_FOR_ANY_TYPE
- See Also:
- Constant Field Values
-
expressionType
private final ExpressionType expressionType
-
backupMethodName
private final java.lang.String backupMethodName
-
-
Constructor Detail
-
BinaryImplementor
BinaryImplementor(ExpressionType expressionType, java.lang.String backupMethodName)
-
-
Method Detail
-
implement
public Expression implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> expressions)
Description copied from interface:NotNullImplementor
Implements a call with assumption that all the null-checking is implemented by caller.- Specified by:
implement
in interfaceNotNullImplementor
- Parameters:
translator
- translator to implement the codecall
- call to implementexpressions
- arguments of a call- Returns:
- expression that implements given call
-
anyAnyOperands
private boolean anyAnyOperands(RexCall call)
Returns whether any of a call's operands have ANY type.
-
callBackupMethodAnyType
private Expression callBackupMethodAnyType(RexToLixTranslator translator, RexCall call, java.util.List<Expression> expressions)
-
maybeBox
private Expression maybeBox(Expression expression)
-
-