Class PythonBiFunction<T,U,R>

java.lang.Object
io.deephaven.integrations.python.PythonBiFunction<T,U,R>
Type Parameters:
T - input argument class
U - input argument class
All Implemented Interfaces:
BiFunction<T,U,R>
Direct Known Subclasses:
PythonBiFunction.PythonBinaryOperator

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

    • PythonBiFunction

      public PythonBiFunction(org.jpy.PyObject pyCallable, Class<R> classOut)
      Creates a BiFunction 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, Object) method. This should be the result of converting or unwrapping the output of pyCallable.
  • Method Details