Class ReflectiveCallNotNullImplementor
java.lang.Object
org.apache.calcite.adapter.enumerable.ReflectiveCallNotNullImplementor
- All Implemented Interfaces:
NotNullImplementor
Implementation of
NotNullImplementor
that calls a given Method
.
When method is not static, a new instance of the required class is created.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionimplement
(RexToLixTranslator translator, RexCall call, List<Expression> translatedOperands) Implements a call with assumption that all the null-checking is implemented by caller.
-
Field Details
-
method
-
-
Constructor Details
-
ReflectiveCallNotNullImplementor
Constructor ofReflectiveCallNotNullImplementor
.- Parameters:
method
- Method that is used to implement the call
-
-
Method Details
-
implement
public Expression implement(RexToLixTranslator translator, RexCall call, 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
-