Class PythonFunction<T,R>

java.lang.Object
io.deephaven.integrations.python.PythonFunction<T,R>
Type Parameters:
T - input argument class
All Implemented Interfaces:
Function<T,R>
Direct Known Subclasses:
PythonFunction.PythonUnaryOperator

@ScriptApi public class PythonFunction<T,R> extends Object implements Function<T,R>
A Function implementation which calls a Python callable.
  • Constructor Details

    • PythonFunction

      public PythonFunction(org.jpy.PyObject pyCallable, Class<R> classOut)
      Creates a Function which calls a Python function.
      Parameters:
      pyCallable - The python object providing the function - must either be callable or have an apply attribute which is callable.
      classOut - The specific Java class expected to be returned by the apply(Object) method. This should be the result of converting or unwrapping the output of pyCallable.
  • Method Details