Class ReflectiveCallNotNullImplementor

java.lang.Object
org.apache.calcite.adapter.enumerable.ReflectiveCallNotNullImplementor
All Implemented Interfaces:
NotNullImplementor

public class ReflectiveCallNotNullImplementor extends Object implements NotNullImplementor
Implementation of NotNullImplementor that calls a given Method.

When method is not static, a new instance of the required class is created.

  • Field Details

    • method

      protected final Method method
  • Constructor Details

    • ReflectiveCallNotNullImplementor

      public ReflectiveCallNotNullImplementor(Method method)
      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 interface NotNullImplementor
      Parameters:
      translator - translator to implement the code
      call - call to implement
      translatedOperands - arguments of a call
      Returns:
      expression that implements given call