Class ReflectiveCallNotNullImplementor
- java.lang.Object
-
- org.apache.calcite.adapter.enumerable.ReflectiveCallNotNullImplementor
-
- All Implemented Interfaces:
NotNullImplementor
public class ReflectiveCallNotNullImplementor extends java.lang.Object implements NotNullImplementor
Implementation ofNotNullImplementor
that calls a givenMethod
.When method is not static, a new instance of the required class is created.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Method
method
-
Constructor Summary
Constructors Constructor Description ReflectiveCallNotNullImplementor(java.lang.reflect.Method method)
Constructor ofReflectiveCallNotNullImplementor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> translatedOperands)
Implements a call with assumption that all the null-checking is implemented by caller.
-
-
-
Constructor Detail
-
ReflectiveCallNotNullImplementor
public ReflectiveCallNotNullImplementor(java.lang.reflect.Method method)
Constructor ofReflectiveCallNotNullImplementor
- Parameters:
method
- method that is used to implement the call
-
-
Method Detail
-
implement
public Expression implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> translatedOperands)
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 implementtranslatedOperands
- arguments of a call- Returns:
- expression that implements given call
-
-